Comment

Comment by agentultra

Uh...

  ps | awk 'NR>1{ print $1, $4}'
I'll give that the syntax of these shell programs take some work to understand but they're hard to beat for the purpose they serve.

If you're parsing plenty of JSON these days I find 'jq' indispensable. It's basically awk/sed for JSON.

I would just be sure to study those programs as they took quite a bit of effort to make them fast. And there are plenty of alternatives with extended syntax and features.

Best of luck.

parent agentultra 10 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton