[wplug] Slightly off topic...shell script
Dileep Vangasseri
dil5516 at yahoo.com
Fri Feb 11 17:11:24 EST 2005
Hello,
I have a set of files having names which has
characters --- in between (like foo---test--to.txt). I
want to replace '---' with a '-' (single dash). Can
anyone suggest a script which would make my life
simple?
I tried:
for i in *.txt; do mv "$i" `echo $i | tr '---' '-'`;
done
But it is not taking the --- as one character. Can
anyone suggest a way out?
Regards,
Dileep
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the wplug
mailing list