[mdlug] batch name changes

Adam Tauno Williams awilliam at whitemice.org
Fri Jan 25 10:45:15 EST 2013


On Fri, 2013-01-25 at 07:06 -0500, Garry Stahl wrote:
> On 01/24/2013 02:48 PM, Michael Mikowski wrote:
> > Hi Gary
> > Also, if you need to rename all files and know the extension you want, it is a one-liner (and this should be quite efficient)
> > find ./ -type d |while read dir; do rename 's/$/.jpg/' $(find $dir -type f -maxdepth 1); done
> ????
> How do I use that?

Highlight the above command string, then Ctrl-C (Copy)
Navigate to where the files are in Nautilus.
Right click -> Open In Terminal
Paste the command [Ctrl-Shift-V, paste into terminal]
Press enter


-- 
Adam Tauno Williams  GPG D95ED383
Systems Administrator, Python Developer, LPI / NCLA



More information about the mdlug mailing list