Re: mv * small_*

James <[email protected]>
Newsgroups gmane.user-groups.linux.ottawa.general
Message-ID <[email protected]>
  On 05/28/10 19:15, John Gill wrote:
> On Fri, May 28, 2010 at 4:12 PM, James<[email protected]>  wrote:
>
>>   On 05/28/10 15:56, 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?
>> I googled the answer. :-)
>>
> List etiquette: if you ask a question, then find the answer yourself, it is
> polite to share your answer.
>
> There is also a neat little program to do this sort of thing:  mmv
>
> John
for f in *; do mv -i "$f" "small_${f%}"; done

-- 
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.