Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
a3_nm
on Aug 28, 2011
|
parent
|
context
|
favorite
| on:
Why you should learn just a little Awk - A Tutoria...
The interested reader should not assume hastily, however, that tr -s is enough to make cut behave exactly like awk. Hint: leading spaces.
pi:~$ echo ' foo' | tr -s ' ' | cut -d ' ' -f 1 pi:~$ echo ' foo' | awk '{print $1}' foo
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: