Thursday, November 26, 2009

How to rename file extentions in Linux

This is a nice command to basically rename all .csv files in a directory to .bak

for x in *.csv; do mv "$x" "${x%.dot}.bak"; done

No comments:

Followers