Say I have the following file.txt
some line
{
hey it's me, another line
}
# START FOO
These lines
need to be commented
out
# END FOO
Some other line
How could I comment out all lines between the markers # START FOO
and # END FOO
in bash
? Is it possible to do it in a one-liner?