Process command output line by line in a while loop

$ while read -r line; do echo $line; done < <(YOUR COMMAND HERE);

This snippet allows to process the output of any bash command line by line.

Diff your entire server config at

Read More here.

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.