tMore precise pattern matching - scripts - various script and utils
 (HTM) git clone git://z3bra.org/scripts
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit 12a28580b7834b977cf6ffe3ccf59357ff4fdaad
 (DIR) parent a89860f7a606f8e70e8230ae9581002b7667d561
 (HTM) Author: z3bra <willy@mailoo.org>
       Date:   Tue,  6 May 2014 15:26:18 +0200
       
       More precise pattern matching
       
       Diffstat:
         M cdump                               |      12 ++++++------
       
       1 file changed, 6 insertions(+), 6 deletions(-)
       ---
 (DIR) diff --git a/cdump b/cdump
       t@@ -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