WWW-diary of Juhapekka Tolvanen:

Monday, 22 March 2004




06:48:36 EET @241

Oho! GNU-projektin ls-komennon lisäksi myöskin grep osaa värit:

`--colour[=WHEN]'
`--color[=WHEN]'
     The matching string is surrounded by the marker specify in
     GREP_COLOR.  WHEN may be `never', `always', or `auto'.





06:54:27 EET @245

Eipä näytä ainaskaan /bin-hakemistossa löytyvän muita värit osaavia ohjelmia kuin ls ja grep:

juhtolv@heresy:/bin % for f in *(.) ; do ; if strings "$f" | grep -- --colour > /dev/null ; then ; echo $f ; fi ; done 
grep
juhtolv@heresy:/bin % for f in *(.) ; do ; if strings "$f" | grep -- --color > /dev/null ; then ; echo $f ; fi ; done 
dir
grep
ls
vdir

dir ja vdir ovat vain ls-komennon muunnoksia.





07:52:12 EET @286

Tällaisia väriä tukeavia ohjelmia löytyi /usr/bin:nistä:

juhtolv@heresy:/usr/bin % for f in *(.) ; do ; if strings "$f" | grep -- --color > /dev/null ; then ; echo $f ; fi ; done
dircolors
enscript
strings: fcronsighup: Lupa evätty
less
mc
mikmod
minicom
pdmenu
pod2text
si
juhtolv@heresy:/usr/bin % for f in *(.) ; do ; if strings "$f" | grep -- --colour > /dev/null ; then ; echo $f ; fi ; done
dselect
strings: fcronsighup: Lupa evätty
grc
unicode





13:07:34 EET @504

Meenpä nukq.





20:00:50 EET @791

Heräsin noin tunti sitten.





Edellinen / Previous

Seuraava / Next

Juhapekka Tolvanen