rename command won't work
I'm trying to rename a file, but it just does not work. I type rename htaccess.txt .htaccess I don't get an error or anything, but if I do a dir it does not work, the file is still called htaccess.txt. Why is that? Is there an easy way around that?
|
Use 'mv'. I *despise* rename's syntax and it should only be used for complex multi-file renaming.
mv htaccess.txt .htaccess |
The rename command works the other way around :) Also, for single files I'd just use mv, rather than rename (which methinks is meant for renaming a group of files according to a Perl expression), thus
mv htaccess.txt .htaccess Cheers, M. |
try mv htaccess.txt .htaccess
ummm....yeah...what they said... |
thanks for the quick answers!
|
All times are GMT -5. The time now is 11:49 AM. |