Last active
November 2, 2015 15:33
-
-
Save saxsir/0a334aae9e42451dfae1 to your computer and use it in GitHub Desktop.
コマンドラインからファイルを1行ずつ読んで逐次処理するワンライナー
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
cat foo.txt | while read line; do echo $line; done |
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
foo | |
bar | |
baz |
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
run: | |
cat foo.txt | while read line; do echo $$line; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment