Skip to content

Instantly share code, notes, and snippets.

@illustris
Last active March 27, 2019 04:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save illustris/67f3863e81a48b7961fb5366b3ce4191 to your computer and use it in GitHub Desktop.
Save illustris/67f3863e81a48b7961fb5366b3ce4191 to your computer and use it in GitHub Desktop.
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