Created
January 18, 2019 00:42
-
-
Save wolterlw/f5dc46fd3a453e06f369fc1c764d2c04 to your computer and use it in GitHub Desktop.
Shell stuff
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
#to match the word between foo and bar use: | |
$ grep -oP '(?<=foo )\w+(?= bar)' test.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment