Need a file renaming facility
Chris Reimer
ctr at Stride.COM
Thu May 5 04:30:15 AEST 1988
In article <3564 at fluke.COM> inc at tc.fluke.COM (Gary Benson) writes:
>
> QT.1.r QT.4.r QT.A.r
> Qt.1.r.pre QT.4.r.pre QT.A.r.pre
>
>Now I want to rename all those ".pre" files to the same name without ".pre".
Try:
foo% foreach i ( `ls *.pre | sed 's/.pre$//'` )
? echo "Moving ${i}..."
? mv ${i}.pre $i
? end
Obviously (I hope), this must be run under csh. Enjoy!
---
Christian Reimer "Through Truth and Justice, Virtue will Grow!"
ctr at xpiinc.uu.net - The Salamander
...!uunet!xpiinc!ctr
---
More information about the Comp.unix.questions
mailing list