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

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.


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: