Skip to content

Instantly share code, notes, and snippets.

@Hiromi-Kai
Created October 10, 2015 05:32
Show Gist options
  • Save Hiromi-Kai/8b369619556c61245391 to your computer and use it in GitHub Desktop.
Save Hiromi-Kai/8b369619556c61245391 to your computer and use it in GitHub Desktop.
200までの素数のナンバーでファイル名を作成する(ゼロ埋め付き)
#!/bin/sh
seq 2 200 | factor | awk 'NF==2'|touch $(printf "MyFolder/MyFile%03d\n" `cut -d: -f1`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment