Re: SNHELLO and sed: error?
Ralph Corderoy <[email protected]>
| Newsgroups | gmane.network.sn |
|---|---|
| Message-ID | <[email protected]> |
Hi Phil,
> Looking at SNHELLO, I think I agree with sed... The
> sed scrips are:
>
> rmcr () { sed -e 's/
> //' -e '/^\.$/d' >$tmp || end "Can't run sed"; }
With this older version the ASCII LF you have are ASCII CR, i.e. you
have \n, I have \r.
$ g '^rmcr' ~sn/bin/HELLO | od -c
0000000 r m c r ( ) { s e d - e
0000020 ' s / \r / / ' - e ' / ^ \
0000040 . $ / d ' > $ t m p | | e
0000060 n d " C a n ' t r u n s e
0000100 d " ; } \n
0000106
How yours ended up like that I don't know. Some kind of `convert DOS
carriage return' step?
Cheers,
Ralph.