Looping through the output of a command line by line
suggest changewhile IFS= read -r line;do echo "**$line**" done < <(ping google.com)
or with a pipe:
ping google.com | while IFS= read -r line;do echo "**$line**" done
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents