> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Michael T. Davis

>       Yeah, I thought that looked fishy.  I've tried a few different sed
> invocations, which seems the most capable, but I'm just not getting it.  I
> hadn't checked before sending my original request, but Perl, unfortuantely,
> isn't an option, since most "extras" weren't installed to conserve
> file space.
> (The system only has 64MB of file space, provided by an ATA Flash card.)
>
>       My first attempt went line this:
>
>                             sed 's/ \\$//' ipf.rules

Looks like sed is too brain damaged to me.  It reads line by line up to but
excluding the newline, so that sounds like it's never going to be able to
pattern match over multiple lines and include the newline in the match --
which is what is needed.

However, shell programs handle this kind of continued line just fine, so how
about this kludge?

#!/bin/sh
while read line
do
echo $line
done < $1


If that script is in a file called foo with exec perms (i.e. chmod +x foo),
then you could just say "foo ipf.rules" to get the full lines on standard out.

..chris


Reply via email to