How to read text between two particular text in unix shell scripting -


i want read text between 2 particular words text file in unix shell scripting. example in following:

"my name sasuke uchiha." 

i want sasuke.

this 1 of many ways can done:

to capture text between "is" , "uchiha":

sed -n "s/^.*is \(.*\)uchiha.*/\1/p" infile 

Popular posts from this blog

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -