shell
sample1 for
sample2 for その2
sample3 if
sample4 while
sample5 case
shell top
top
blog
sample4 shell while
whileで条件が真の間繰り返します。
#!/bin/sh while read i do echo $i done
read i
で標準入力から1行ずつ読み込みます。