Skip to content

Instantly share code, notes, and snippets.

@take4
Created June 7, 2015 06:06
Show Gist options
  • Save take4/390a4b5b989178815d5a to your computer and use it in GitHub Desktop.
Save take4/390a4b5b989178815d5a to your computer and use it in GitHub Desktop.
ファイルを1行ずつ読み込むサンプル
#!/bin/sh
filename=$1
cat ${filename} | 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