[ale] Mass changing of file extension

JD jdp at algoloma.com
Fri Sep 14 11:18:31 EDT 2012


On 09/14/2012 10:40 AM, Sparr wrote:
> rename "s/\.tsv$/.csv/" *.tsv
> 
> \ and/or $ may require escaping in your shell
> 

Or just
$ rename 's/tsv$/csv/g' *tsv

"rename" is included with perl5 and later.  Spreadsheets "like" the "csv" as an
extension, but the built-in parsers will handle the tabs just as easily.


More information about the Ale mailing list