[Gllug] Making filenames 'FAT-safe' in bash

Dylan dylan at dylan.me.uk
Tue Nov 30 15:14:13 UTC 2010


On Tuesday 30 Nov 2010, - Tethys wrote:
> 
> Ahhh. Yes, that's because it's part of a larger script and only
> operates on the basename of a given file. Change the last line to:
> 
> 	sed 's,[^0-9a-z_./],,g;s/__*/_/g'
> 
Thank you muchly - that does exactly what I need! I suppose it's time I picked 
it apart to find out how ...

Dx


-- 
" '... but there is so much else behind what I say. It makes itself known to 
me so slowly, so incompletely! ...' "
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list