touch コマンドで連番ファイルを作る

作成日:2020-01-18 更新日:2023-11-12
Shell

連番ファイルを一度に作成したいときのコマンドを記す。

0…nの連番

touch {0..n}_test.txt

00, 01, 02, … みたいなことをしたいとき

touch {00..n}_test.txt

a…t の連番

touch {a..t}_test.txt