3 ms·Can you skip the whole writing to file bit, and pipe straight to egrep?by c0wb0yc0d3r 11y agoCan you skip the whole writing to file bit, and pipe straight to egrep?jdc0589 11y agosure. but then you wouldn't have a file to go investigate the matched line numbers in.lindig 11y agosecurity 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).