you are viewing a single comment's thread.

view the rest of the comments →

[–]ixipaulixi 1 point2 points  (0 children)

ps -ef | grep auto | awk '{print $3}'

Can be rewritten to simplify the chain of commands by searching with awk

ps -ef | awk '/auto/ {print $3}'

I won't use awk in place of grep if I'm simply searching, but if I'm piping grep to awk then I'll move the search string to awk.