Skip to content

Instantly share code, notes, and snippets.

@illustris illustris/gropen.sh
Last active Mar 27, 2019

Embed
What would you like to do?
Oneliner to open all grep -rIn matches in gedit one by one
egrep -o '^.*:[0-9]+' | sed -E 's/:([0-9]+)$/\n+\1/' | while read fname; do read lname; gedit "$fname" $lname; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.