Very good article.
Another point that I think is valuable is: "Output one line per record data"
This is useful if your CLI that has to output data to the user. Makes it easier to interface with programs like `grep`
Another point that I think is valuable is: "Output one line per record data"
This is useful if your CLI that has to output data to the user. Makes it easier to interface with programs like `grep`
ps | tail -n +2 | cmd_with_just_records
or, if you're doing column extraction as well, I like: ps | perl -lanE'say $F[0] if 2..eof'
[ps used here as a stand-in for some other command that has a fixed header. I'm aware that you can omit it via hte somewhat long-winded `ps -o "pid= command= [...]"' there, but afaik there's no simple switch for 'do what you were going to, just without a header line at the top']