Quote:
|
Originally Posted by bryan
how do i get a word that exists between two words
eg: this is bryan
My input to command would be this and bryan
and output should be 'is'
Is there a command i can use?
|
Code:
sed -n 's/word1[ ][ ]*\([^ ]*\)[ ][ ]*/\1/p'