Grep a string-digit-string pattern where the numerical value must have more than one digit and output it to a text file
cat filename.txt | grep -w -o "string [0-9]\{1,\} string" > output.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment