Last active
May 1, 2023 06:40
-
-
Save yspkm/1f56107dd32402079ab1500b599309ac to your computer and use it in GitHub Desktop.
N개의 넘버링된 파일에 대한 명령 실행 및 stdout에 출력하는 seq문
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
seq <개수> | xargs -I % 명령어 <file명_넘버링은 %>.<식별자> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
e. g.
ex1.py: print("ex1.py print")
ex2.py: print("ex2.py print")
$ seq 2 | xargs -I % python ex%.py
ex1.py print
ex2.py print