[NTLUG:Discuss] scripting help
Mailing Lists
rich-lists at multicam.com
Fri Mar 5 11:09:12 CST 2004
MadHat wrote:
> On Mar 5, 2004, at 8:18 AM, Mailing Lists wrote:
>
>> I need to consolidate a large number of image files into a single
>> directory. Currently the images are spread out over multiple
>> directories. Is there an easy way to find all of these files and move
>> them to a specified directory. The files are images for a large
>> website and i want to consolidate them all into a
>> /var/www/mywebsite/images directory. How can I do this.
>>
>
> find . -type f -name "*.jpg" -exec mv {} /var/www/mywebsite/ \;
>
> or if you are a little scared, you can do
>
> find . -type f -name "*.jpg" -ok mv {} /var/www/mywebsite/ \;
>
> and it will prompt before each mv command.
>
>
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
>
Thanks Much
More information about the Discuss
mailing list