Adding a prefix to multiple filenames.
Also, it'll hit *all* files in that directory (iirc). Replace...:
for file in * ;
.... with...:
for file in $1 ;
.... if it's for a batchfile. If the for-done loop is being typed in at a
terminal window, replace...:
for file in * ;
.... with...:
for file in *.ext ;
.... to do the operation on files with a .ext extension.
--
Linux: because I work with Windows, and that's bad enough.
AOLM FAQ - http://blinkynet.net/comp/faq_aolm.html
RLU #300033 - MDK 10.2 - WindowMaker 0.92.0
|