[ale] Mass changing of file extension

Jim Kinney jim.kinney at gmail.com
Fri Sep 14 11:28:52 EDT 2012


so "*\.tsv" wouldn't require the "." before the tsv?

On Fri, Sep 14, 2012 at 11:26 AM, JD <jdp at algoloma.com> wrote:

> 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.
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>



-- 
-- 
James P. Kinney III
*
*Every time you stop a school, you will have to build a jail. What you gain
at one end you lose at the other. It's like feeding a dog on his own tail.
It won't fatten the dog.
- Speech 11/23/1900 Mark Twain
*
http://electjimkinney.org
http://heretothereideas.blogspot.com/
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20120914/7b3ea6d9/attachment.html 


More information about the Ale mailing list