Loop grep return on shell script


http://www.linuxquestions.org/questions/programming-9/multi-line-return-from-grep-into-an-array-333576/

grep -n "pattern" $log_file_name | while read line
do
  echo $line
done

No comments:

Post a Comment