[Linux] Batch Change File Name Endings with rename Command
I looked up how to batch change file name endings with the rename command in Linux, which allows batch renaming of files, so here’s a memo.
■ How to Use the rename Command
Format
$ rename from to file...
from String before replacement
to String after replacement
file… Files to be converted
■ Command to Batch Change File Name Endings
$ rename 's/\\./_t\\./' *
【Reference】
・UNIXの部屋 コマンド検索:rename (*BSD/Linux) (UNIX Room Command Search: rename (*BSD/Linux))
・PHP正規表現チェッカー (PHP Regular Expression Checker)
That’s all from the Gemba.