Add random-color script. - various - Various utilities developed at bitreich.
(HTM) git clone git://bitreich.org/various/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/various/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
---
(DIR) commit 446755c48bfc6c809f79d8debc8f9c21127f6fc0
(DIR) parent c531fab2d0a6f7cb6149469cecf58a30435f70f5
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Tue, 24 Sep 2024 19:26:41 +0200
Add random-color script.
Diffstat:
A random-color | 4 ++++
1 file changed, 4 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/random-color b/random-color
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+awk 'BEGIN{srand()} RS=" " {c=int(rand()*200)+32;printf "\033[38;5;" c "m" $0 "\033[0m "}'
+