Embedding a Gist
Grep a string-digit-string pattern where the numerical value must have more than one digit and output it to a text file:
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
cat filename.txt | grep -w -o "string [0-9]\{1,\} string" > output.txt |
Posted on April 25, 2014, in Uncategorized. Bookmark the permalink. Leave a comment.
Leave a comment
Comments 0