> Shaul Karl wrote: > > > > The following is an bad attempt to use exmh `Apply command to body' > > feature. > > However I believe it boils down to a tcl or a sh quoting question. > > > > What I am trying to do is to filter a message by applying a filter to > > its body. > > > > Now this filter > > > > sed -n "s/Inst//p" $file > /tmp/apt-get-update > > > > works. However this one > > > > sed -n "s/Inst\(.*\)(.*/\1/p" $file > /tmp/apt-get-update > > > > gives the following error message: > > > > bin/sed: -e expression #1, char 10: Unterminated `s' command > > > > But why? The line is perfectly legal when issued from the command > > prompt. > > I'd try single quotes instead of double quotes. the '(' or '*' are > probably interpreted by shell (or whatever is interpreting the line). > strings in single quotes are usualy not touched by interpreter (shells, > perl, ...) > > erik >
I have tried single quotes too. It didn't work for me. Did it work for you? If yes, can you send me the line? -- Shaul Karl email: [EMAIL PROTECTED] The above address is meant for spammers. All the others should replace .com with .net to get my real address.