Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bewuethr
on July 4, 2017
|
parent
|
context
|
favorite
| on:
Skip grep, use awk
The default FS throws away leading blanks, though, which doesn't happen if you set it explicitly to \s+, so a tiny little bit of magic does go on after all.
cyphar
on July 4, 2017
[–]
Fair enough, though ultimately you could emulate it with sed:
some-cmd | sed -E '{ s/^\s+//g ; s/\s+/ /g }' | cut -f$n
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: