$ cat file
We \edit{introduce a} model for analyzing data from various
experimental designs, \edit{such as paired or longitudinal}.
$ sed 's/\(\edit{\)\([a-z ]*\)\(}\)//g' file
We introduce a model for analyzing data from various
experimental designs, such as paired or longitudinal.
Se o seu arquivo estiver assim:
$ cat file
We \edit{Introduce a} model for analyzing \emph{data} from various
experimental designs, \edit{such as 23 paired or longitudinal}.
Então você deve tentar:
sed 's/\(\[a-z]*{\)\([A-Za-z0-9 ]*\)\(}\)//g' file
We Introduce a model for analyzing data from various
experimental designs, such as 23 paired or longitudinal.
Se você quiser manter \emph{data}
, use:
$ sed 's/\(\edit{\)\([A-Za-z0-9 ]*\)\(}\)//g' file
We Introduce a model for analyzing \emph{data} from various
experimental designs, such as 23 paired or longitudinal.
Ou uma maneira mais suave:
$ sed 's/\edit{\([^}]*\)}//g' file