Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
bandrami
9y ago
0 comments
Share
All four of which users are enjoined, over and over again, not to try to parse the output of (particularly ls). That is, those are the tools specifically
not
meant to be connected by pipelines, but merely used for operator convenience.
0 comments
default
newest
oldest
qwertyuiop924
9y ago
...But how do you extract that data otherwise?
bandrami
OP
9y ago
Instead of ls, find. Instead of ps, you parse the nodes in the /proc filesystem that ps itself parses. Ditto the /sys filesystem and du/df.
qwertyuiop924
9y ago
When those tools were written, /sys and /proc didn't exist.
j
/
k
navigate · click thread line to collapse