[Linux] 파일에서 한줄씩 읽어서 command 실행하기

안녕하세요, 하마연구소 입니다.

file.txt 파일에서 한줄씩 읽어서 curl로 호출하기 위한 커맨드는 아래와 같습니다.

more file.txt | xargs -I {} curl -X GET http://111.222.333.444/{}.json

감사합니다.

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments