Hacker News new | past | comments | ask | show | jobs | submit login

So if I want to change that to the whole file, I "just" have to Ctrl+A Meta+F Meta+F Meta+D Ctrl+D Ctrl+D RET. That's not really an improvement – especially since it depends on how many dots or similar are in the filename.

Also, that's a Useless Use of head, since grep has the option "-m10"




grep -m "Stop reading a file after NUM matching lines", while head -10 takes the first 10 lines and searches on them. Different things.


doh! you're right, I wasn't thinking :-)




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

Search: