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