read line

因为project的编译脚本总是变化,所以自己看了下,关于如何readline (awk, head, tail……)?看到了这个:

#! /bin/bash

current_line=""
cat $1 | while read current_line
do
echo ${current_line}
done


 

 

posted on 2014-11-22 14:27  阿加  阅读(218)  评论(0)    收藏  举报

导航