igli 1186090088 learn Process Substitution (search man bash) rocks! IFS=$'\n'; while read -r l; do echo "'$l'"; done < <(cmd) # s/cmd/whatever you like/ igli 1186090349 forget igli 1186090393 learn Process Substitution (search man bash) rocks! IFS=$'\n'; while read -r l; do echo "'$l'"; done < <(cmd) # s/cmd/whatever you like/ -- see /msg greybot faq1 (and 44 47) igli 1186090769 forget igli 1186090784 learn Process Substitution (search man bash) rocks! while read -r l; do echo "'$l'"; done < <(cmd) # s/cmd/whatever you like/ -- see /msg greybot faq1 (and 44 47) greycat 1193152890 forget greycat 1193152890 learn Don't use ps(1) in scripts -- see http://wooledge.org/mywiki/ProcessManagement instead. Also, "Process Substitution" <(cmd) and >(cmd) -- see http://wooledge.org/mywiki/BashFAQ#faq24 igli 1202989368 forget igli 1202989387 learn Don't use ps(1) in scripts -- see http://wooledge.org/mywiki/ProcessManagement instead. Also, "Process Substitution" <(cmd) and >(cmd) -- see http://wooledge.org/mywiki/BashFAQ/024 ferret 1204050261 forget ferret 1204050269 learn Don't use ps(1) in scripts -- see http://wooledge.org/mywiki/ProcessManagement instead. Stummi 1348214587 forget Stummi 1348214593 learn #redirect pgrep lhunath 1375558032 forget lhunath 1375558098 learn Don't use ps(1) in scripts. Its output is outdated and impossible to parse right. Use $! to get the PID of the last asynchronous command. See http://wooledge.org/mywiki/ProcessManagement for anything more complex. zendeavor 1375944929 forget zendeavor 1375944940 learn Don't use ps(1) in scripts. Its output is outdated and impossible to parse right. Use $! to get the PID of the last asynchronous command. See http://is.gd/ynv7sa for anything more complex. zendeavor 1375945063 forget zendeavor 1375945081 learn Don't use ps(1) in scripts. Its output is outdated and impossible to parse right. Use $! to get the PID of the last asynchronous command. See http://is.gd/ynv7sa for anything more complex. zendeavor 1375945125 forget zendeavor 1375945136 learn Don't use ps(1) in scripts. Its output is outdated and impossible to parse right. Use $! to get the PID of the last asynchronous command. See http://mywiki.wooledge.org/ProcessManagement for anything more complex. ormaaj 1378595198 forget ormaaj 1378595484 learn Don't use ps(1) in scripts. Its output can't be reliably parsed, and will often leave you vulnerable to TOCTOU (race) bugs. Use $! to get the PID of the last asynchronous command. See http://mywiki.wooledge.org/ProcessManagement for anything more complex. ormaaj 1655146893 forget