Created
June 13, 2017 11:31
-
-
Save kmakita13714/3b8e8d4bf11eff27996e915f3e4608c3 to your computer and use it in GitHub Desktop.
[便利なワンライナー・シリーズ] 3桁の数字のフォルダを作成するシェルスクリプト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in `seq -f %03g 1 371`; do mkdir $i; done |
Author
kmakita13714
commented
Jun 13, 2017
- 「-f %03g」でprintfのような書式を設定
- seqコマンドの引数「1」が始まりの数字
- seqコマンドの引数「371」が終わりの数字
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment