Here is the file strings.xml which includeing 3 sentences:
1.string name="schedulelist_nofiles">Não existe agenda de registro! Por favor,
here is missing line tecla “Add” (Adicionar) para adicionar uma. string
2.You should skip this line!
3.string name="Programme_name">GUIA DE PROGRAMA string
I use cat command 'cat strings.xml | grep "string name=" but it only get below lines:
string name="schedulelist_nofiles">Não existe agenda de registro! Por favor,
string name="Programme_name">GUIA DE PROGRAMA string
I want to get the complete line like this , just like sentence 3, start with 'string name' and end with "string". What can I do for this?
sed '/first words/,/last words/ !d'
to select lines that match this pattern be careful to choose the rigth pattern to not select paragraph :) – francois P Jan 17 '18 at 07:35