On Wed, 21 Aug 2002, Philippe Rousselot wrote:
> I need to modify the title of several files and would like to run a
> script I need to invert letter 1 with letter 4 and letter 2 with
> letter 5
If you mean the filename, then this set of toothpicks should help:
for i in *; do
NEW=`echo $i | sed -e 's/^\(.\)\(.\)\(.\)\(.\)\(.\)\(.*\)/\4\5\3\1\2\5/'`
mv $i $NEW
done
backslashitis notwithstanding.
--
"I don't believe it."
"Believe it or not, you piece of shit, you're still gonna burn."
-- Cypher and Tank, "The Matrix"
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help