Change extension of mutiple files in RedHat Linux (AS4)
Posted on 2006-11-28
I admit, I'm relatively new to Linux, but why does this (simple) O/S task seem so difficult to accomplish in RedHat Linux? I just want to find all of the *.log files in a directory, and rename them to *.bak (so a process can create new log files without overwriting the old ones and no, this process cannot easily create more-unique log file names). Yes, I realize that I first have to delete the existing *.bak files, but that's no problem: "rm -f *.bak".
I've worked in VMS and DOS/Windows for years, but never in UNIX. In Windows, for example the command is simply:
ren *.log *.bak
The bash shell in RedHat Linux must have a way to rename a group of files with a relatively-simple command, right?