Pages

Friday, January 23, 2009

Ubuntu Tricks: No Special Characters Here

The limited capabilities of FAT16 and FAT32 has to do with file names. Not so in Linux where almost any character is accepted and files are treated executable by their attributes and not file extension. You could say that Linux runs by true file type.

The rename command in combination with find is one of the best ways to go through all files in a directory and fix naming problems before moving files onto a Windows File Share.

Best line so far:
find . -iname "*" -exec rename -v 's/\:|\*|\%|\&|\?|\\|\^|\=|\"//g' "{}" \;

No comments:

Post a Comment