Philippe Glaziou <[EMAIL PROTECTED]> wrote: > Peter, I cannot see your point. sed can get rid of any pattern in > a text file. Fuensanta's example seemed to show that the > sentences (pattern 1, 2,...) were on separate lines from lines > containing data, thus my approach. Another one closer to your awk > example would use: > > sed -e '/pattern 1\|pattern 2\|pattern xyz//g' <file.txt>file2.txt
I meant sed -e 's/pattern... ^ Sorry for the additional noise. -- Philippe ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help