Thursday, May 7, 2015

Linux: remove file extensions for multiple files


rename .oldext .newext *.oldext

substitutes .old extension to the .new extention


To simply remove the extension you can explicitly pass in an empty string as an argument.

rename . gz.tmp  ' ' *.gz

with above command all files in the folder with .gz.tmp extentsion will be renamed to filename.gz

No comments:

Post a Comment