Hacker News .hnnew | past | comments | ask | show | jobs | submitlogin

Can you skip the whole writing to file bit, and pipe straight to egrep?


sure. but then you wouldn't have a file to go investigate the matched line numbers in.


    security dump-keychain -a | egrep -A 9 -n "applications \(([2-9])\)" 
This gives you the relevant lines right away: 9 lines following the match (you might want to use fewer).




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

Search: