Search code examples
unixgreppid

How to display PID<100 processes by using ps and grep?


Is there a way use ps -ef|grep command to display the processes Within a certain range, say less 100?


Solution

  • Using awk:

    $ ps -ef | awk '$2<100'