I tried the code as given on delete text between curly brackets however I am facing this different error regarding event in sed.file contains:This is {{the multilinetext} file }that wants{ to {bechanged}} anyway.sed ':again;$!N;$!b again; s/{[^}]*}//g' filewhat is supposively going wrong in the workout?Error N: Event not found.
Event not found in sed call in csh script
shell;quoting;tcsh;csh
You have to escape ! to prevent csh/tcsh from performing history expansion. They still do history expansion though you wrote ! in single quote.Try:sed ':again;$\!N;$\!b again; s/{[^}]*}//g' fileOr you can write a script an call with -f script.sed (Read sed FAQ).