Re: mv * small_*
Shawn H Corey <[email protected]>
| Newsgroups | gmane.user-groups.linux.ottawa.general |
|---|---|
| Message-ID | <[email protected]> |
On 10-05-28 03:56 PM, James wrote: > I want to prepend 'small_' to a bunch of files and then resize them > with image magic. > Does anyone know how to do regex with mv? for f in * do n=`echo $f|sed -e 's/^/small_/'` echo mv $f $n done If it looks good, remove "echo" in "echo mv..." -- Just my 0.00000002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. The secret to great software: Fail early & often. Eliminate software piracy: use only FLOSS. -- OCLUG general discussion list [email protected] http://oclug.on.ca/mailman/listinfo/oclug