Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
bandrami
9y ago
0 comments
Save
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
3 comments · 1 top-level
top
newest
oldest
qwertyuiop924
9y ago
· 2 in thread
...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