[R] question

Philippe Glaziou glaziou at pasteur-kh.org
Wed Nov 19 13:30:52 CET 2003


Philippe Glaziou <glaziou at pasteur-kh.org> 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




More information about the R-help mailing list