Open GoogleCodeExporter opened 9 years ago
Original comment by patric.r...@gmail.com
on 13 Aug 2013 at 11:27
On Unix, you can use awk to apply such kind of filtering:
./jvmtop.sh --once | awk '$1 == "JvmTop" || $1 == "PID" || $2 == "org.jboss.Main"'
(the first two || arguments are there so that the header and column lines are displayed ⇒ remove them if such behavior is not desired)
Notice that this works even without the --once option but then filter on "JvmTop" on 2nd column for dynamic refresh:
./jvmtop.sh | awk '$2 == "JvmTop" || $1 == "PID" || $2 == "org.jboss.Main"'
Original issue reported on code.google.com by
j...@sodexis.com
on 13 Aug 2013 at 11:18