Add random-color script. - various - Various utilities developed at bitreich. | |
git clone git://bitreich.org/various/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinw… | |
Log | |
Files | |
Refs | |
Tags | |
--- | |
commit 446755c48bfc6c809f79d8debc8f9c21127f6fc0 | |
parent c531fab2d0a6f7cb6149469cecf58a30435f70f5 | |
Author: Christoph Lohmann <[email protected]> | |
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(-) | |
--- | |
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 … | |
+ |