by call | Jan 24, 2013 | coursera, oneliner, perl, regex, rename, solution, support
(you can read this publication in spanish here) Useful one-liner to rename multiple files using regular expressions:perl -we ‘$regex = shift(@ARGV); $rep = shift(@ARGV); $rep =~ s/”/\”/g; $rep = qq(“$rep”); foreach (@ARGV) { if (/$regex/)...
by call | Jan 24, 2013 | coursera, oneliner, perl, regex, rename, solution, support
Practical command to rename files using regular expressions:perl -we ‘$regex = shift(@ARGV); $rep = shift(@ARGV); $rep =~ s/”/\”/g; $rep = qq(“$rep”); foreach (@ARGV) { if (/$regex/) { $ren = s/$regex/$rep/geer; print...