Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
billyhoffman
on Aug 27, 2014
|
parent
|
context
|
favorite
| on:
Useful Unix commands for exploring data
For last line, I always did
tac [file] | head -n 1
Mainly because I can never remember basic sed commands
(Strange, OS X doesn't seem to have tac, but Cygwin does...)
_delirium
on Aug 27, 2014
|
next
[–]
The BSDish way of pronouncing 'tac' is 'tail -r'.
petepete
on Aug 27, 2014
|
prev
|
next
[–]
If you installed coreutils with homebrew, it's called gtac.
alayne
on Aug 27, 2014
|
prev
[–]
Why not just tail -n [file]?
Consider applying for YC's W25 batch! Applications are open till Nov 12.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
(Strange, OS X doesn't seem to have tac, but Cygwin does...)