Created
January 29, 2011 20:59
-
-
Save jkatricak/802187 to your computer and use it in GitHub Desktop.
Convert filenames from upper to lower case, strip out parens and apostrophes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
foreach $argnum (0 .. $#ARGV) { | |
$tmp = $ARGV[$argnum]; | |
$ARGV[$argnum] =~ tr/A-Z/a-z/; | |
$ARGV[$argnum] =~ s/\(//g; | |
$ARGV[$argnum] =~ s/\)//g; | |
$ARGV[$argnum] =~ s/\'//g; | |
print "$tmp\n"; | |
system("mv \"$tmp\" \"$ARGV[$argnum]\""); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment