The syntax rename command
rename [options] expression replacement-file
For example, basic use rename command
[huupv@huupv huuphan.com]$ rename file huu file1.txt
The same output
How to rename all file extension .txt to .atxt file
[huupv@huupv huuphan.com]$ rename .txt .atxt *.txt
The same output
Use option --verbose in rename command
[huupv@huupv huuphan.com]$ rename -v foo huu foo?.atxt
The same ouput
`foo2.atxt' -> `huu2.atxt'
`foo3.atxt' -> `huu3.atxt'
Details more information rename command
man rename
Thanks for reading rename command in linux My blog Effortless Zimbra Mail Management: Unleashing the Power of Linux Commands, How-To, and Bash Scripts I hope this is useful.