Last active
March 27, 2019 04:25
-
-
Save illustris/67f3863e81a48b7961fb5366b3ce4191 to your computer and use it in GitHub Desktop.
Oneliner to open all grep -rIn matches in gedit one by one
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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