[ale] Mass changing of file extension

JD jdp at algoloma.com
Fri Sep 14 11:26:19 EDT 2012


On 09/14/2012 11:21 AM, Sparr wrote:
> be careful with this one, it will rename things that end with "tsv"
> and not just ".tsv", such as perhaps your hypothetical "renametsv"
> script :)
> 
> On Fri, Sep 14, 2012 at 11:18 AM, JD <jdp at algoloma.com> wrote:
>> $ rename 's/tsv$/csv/g' *tsv


There is no different in the shell globbing between "*tsv" and "*.tsv" since "."
matches any character in a regex.

The ".ext" match is special in MS-Dos/Windows, not UNIX.


More information about the Ale mailing list