[ale] Mass changing of file extension

mike at trausch.us mike at trausch.us
Fri Sep 14 11:52:45 EDT 2012


On 09/14/2012 11:26 AM, JD wrote:
> 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.

In regex, the period must be escaped.

In shell globbing, the dot isn't a wildcard at all, it's a literal
character (compare to DOS/Windows, where the dot is literal UNLESS it is
the last dot, and then it is special, and THEN only if it is using short
filenames in the filesystem that it is working with, such as VFAT or
NTFS with FAT-style short filenames enabled).

Ahh, filesystems.  :-)

	--- Mike

-- 
A man who reasons deliberately, manages it better after studying Logic
than he could before, if he is sincere about it and has common sense.
                                   --- Carveth Read, “Logic”

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 726 bytes
Desc: OpenPGP digital signature
Url : http://mail.ale.org/pipermail/ale/attachments/20120914/f4dea5b0/attachment-0001.bin 


More information about the Ale mailing list