Learn about Linux
Download Linux
Get Linux help
Get special offers on:
Linux Application Dev Programming Software
Email:
#
Return to CLI Magic: A little script to customize directory listings
© Copyright 1999-2008 - SourceForge, Inc., All Rights Reserved About Linux.com - Privacy Statement - Terms of Use - Advertise - Trademark - Ask Linux Questions - Write for Us - RSS Feed ThinkGeek - Slashdot - SourceForge.net - freshmeat - Surveys - Jobs
CLI Magic: A little script to customize directory listings
Posted by: Anonymous [ip: 84.240.48.164] on December 11, 2007 03:20 PMSo i wrote this:
#!/bin/sh
#
while read line
do
echo -e `echo $line | sed 's/'"$1"'/\\\E[31m'"&"'\\\E[37m/g'`
done
And saved it as /usr/local/bin/clr
Try to pipe something through it :)
[Modified by: Anonymous on December 11, 2007 03:24 PM]
#