Posted By

rm1984 on 06/30/16


Tagged

command Shell Bash output row sh while


Versions (?)

Read and process the output of a command one row at a time


 / Published in: Bash
 

Read and process the output of a command one row at a time

  1. while read -r ROW
  2. do
  3. echo $ROW
  4. done < <(command)

Report this snippet  

You need to login to post a comment.