Skip to content
Advertisement

how to grep lines according to 6th field contents

I would like to know how to filter lines according to the mem usage: I would like to be able to find only the PIDs that (RES mem usage) exceed 5GB

Explicitly, I have the following lines

JavaScript

and I’d like to grep only the lines where the 6th field is larger than 5 GB

EDIT: Note that sorting is not important. Just selecting the lines that exceed the threshold is important.

Thanks!

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement