Simple SED with rename
just curious as to why this command fails to rename my files:
Code:
$ rename -v "s/HDTV.*/mkv/g" *.mkv Code:
$ cat idx.txt && cat idx.txt | sed "s/HDTV.*/mkv/g" Just wondering... thanks in advance |
You probably have the old version of rename that doens't take a regex. You want the one from the Perl distribution.
|
Quote:
Code:
$ rename -V http://forums.fedoraforum.org/showthread.php?t=199949 http://wiki.linuxquestions.org/wiki/Rename Wow that's so weak! Thanks.... |
As mentioned, the "rename" that uses that syntax is actually the prename perl script. It comes standard with the perl package, in Debian-based systems at least, and it's automatically aliaed to rename through the alternatives system.
If you have perl installed on Fedora or another non-debian system, I really want to know if also supplies prename for you too, but just doesn't set it up as the default. |
Quote:
Code:
$ locate prename |
All times are GMT -5. The time now is 12:34 AM. |