Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Suppressing the header line and any fancy formatting jazz is a nice idea as well, since otherwise there's invariably some buggery needed to strip it like:

    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']


Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: