[X-Unix] Any CLI multi-line regex find utilities out there?
James Avgeris
jima at itempo.com
Wed Oct 27 17:31:18 PDT 2004
On Oct 27, 2004, at 5:11 AM, Kuestner, Bjoern wrote:
> You could maybe pipe it through sed first and remove all the line
> breaks,
> then keep the pipe going to grep and to the usual magic.
>
> Björn
Does anyone know how to capture newlines with sed? I'm thinking:
cat file.txt | sed "s/\n/ /g" | grep blah...
(But this doesn't work: \n isn't matching newlines.)
More information about the X-Unix
mailing list