Create a gist now

Instantly share code, notes, and snippets.

@saxsir /Makefile
Last active Nov 2, 2015

What would you like to do?
コマンドラインからファイルを1行ずつ読んで逐次処理するワンライナー
cat foo.txt | while read line; do echo $line; done
foo
bar
baz
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