Unrenameable file?!
Hello, check this out, what am I doing wrong?
Code:
[zuki@nfs Moviez]$ ls |
Try `mv` instead of `rename`.
|
You are using the rename command, which is used to change substrings in file names.
What you want to do: mv line-dozen2.avi Cheaper.By.The.Dozen2.avi See: man rename man mv Also: apropos rename |
In linux, when you want to rename one file you use "mv"
Like this: mv file1.txt file2.txt file1.txt will be moved to file2.txt Rename is used to rename groups of files and requires three arguments. |
what?
why would I want to use MV which ment to MOVE files! and not rename which named to rename files? EDIT : Thanks! it works but lol! Rename should be able to rename file(s) without any difficulties! |
because it works that way in Linux?
|
haha... though I think rename should do this work aswell!
maybe someone will read this and compile this feature in the next kernel? |
Code:
~$ rename For rename the correct arguments go like this: Code:
rename 's/Cheaper.By.The.Dozen2.avi/line-dozen2.avi' line-dozen2.avi Quote:
|
All times are GMT -5. The time now is 06:15 AM. |