scripts

various script and utils
git clone git://z3bra.org/scripts
Log | Files | Refs

commit 12a28580b7834b977cf6ffe3ccf59357ff4fdaad
parent a89860f7a606f8e70e8230ae9581002b7667d561
Author: z3bra <willy@mailoo.org>
Date:   Tue May  6 15:26:18 +0200

More precise pattern matching

Diffstat:
cdump | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/cdump b/cdump @@ -3,20 +3,20 @@ FILE=$HOME/etc/Xresources for NUM in {0..7}; do - CN=$(grep "color${NUM}:" $FILE | cut -d':' -f2 | tr -d ' ') - echo -en "\e[0;3${NUM}m$CN\033[m " + CN=$(grep "^\*color${NUM}:" $FILE | cut -d':' -f2 | tr -d ' ') + echo -en "\e[0;3${NUM}m$CN\e[m " done echo for NUM in {0..7}; do - echo -en "\033[0;3${NUM}m▉▉▉▉▉▉▉\033[m " + echo -en "\e[0;3${NUM}m▉▉▉▉▉▉▉\e[m " done echo for NUM in {0..7}; do - echo -en "\033[1;3${NUM}m▉▉▉▉▉▉▉\033[m " + echo -en "\e[1;3${NUM}m▉▉▉▉▉▉▉\e[m " done echo for NUM in {0..7}; do - CN=$(grep "color$((${NUM}+8)):" $FILE| cut -d':' -f2 | tr -d ' ') - echo -en "\e[1;3${NUM}m$CN\033[m " + CN=$(grep "^\*color$((${NUM}+8)):" $FILE| cut -d':' -f2 | tr -d ' ') + echo -en "\e[1;3${NUM}m$CN\e[m " done echo