Feed a while loop with the output of a command

suggest change

This feeds a while loop with the output of a grep command:

while IFS=":" read -r user _
do
    # "$user" holds the username in /etc/passwd
done < <(grep "hello" /etc/passwd)

Feedback about page:

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



Table Of Contents