I have these two files in my home directory -
hello_newest.txt
goodbye_newest.txt
I want to rename them so that the "newest" part of the filename is removed completely, so that they would recome hello.txt
and goodbye.txt
This is the command I am running -
find -name "*.txt" -exec rename 's/newest//i' {} ";"
It doesnt throw an error or do anything to the files after I run this command. I've checked out http://www.computerhope.com/unix/rename.htm and it looks like it should be working based on some of those examples that are there.
I'm sure it's something simple, but what am I missing?