I have a .txt file that contains a text like this :
{remove}Some text in line 1
Some text in line 2
Some text in line 3
{remove} Some text in line 4
With Parameter expansion how can I delete all lines that contain the special tag {remove} ??
I tried this but it doesn't work !
text="$(cat "template.txt")"
echo "${text##\{remove\}*'\n'}"
Thank you