Looping through the output of a command line by line

suggest change
while 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

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents