How to specify more spaces for the delimiter using cut?
Actually awk is exactly the tool you should be looking into: ps axu | grep ‘[j]boss’ | awk ‘{print $5}’ or you can ditch the grep altogether since awk knows about regular expressions: ps axu | awk ‘/[j]boss/ {print $5}’ But if, for some bizarre reason, you really can’t use awk, there are other simpler … Read more