Re: mv * small_*

Kelwin Wylie <[email protected]>
Newsgroups gmane.user-groups.linux.ottawa.general
Message-ID <[email protected]>
To rename the files, assuming they are all in one directory and that you
are using bash:

1. cd to the directory

2. execute the following:

for FILE in *; do mv $FILE small_$FILE; done


Kelwin

On 05/28/2010 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?

-- 
Kelwin Wylie
-- 
OCLUG general discussion list
[email protected]
http://oclug.on.ca/mailman/listinfo/oclug
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.