I need to parse a text file and replace a certain portion of it. I believe sed is the way to do it but not sure how to handle multiple lines with itThe pattern I am looking isset cells { \  cell1 \  cell2 \  cell3 \  }and I want to replace it with the contents of a variable.Something like the following should do the trick, but it doesn't work on multiple lines. Any ideas?sed s/set cells {.*}/set cells {$cell_variable}/ file
sed pattern and multiline substitution
text processing;sed