On Wed, 29 Aug 2007 13:21:01 -0500, McKown, John wrote:
>
>What do you want to accomplish? Is the input file in ASCII, or EBCDIC
>with trailing ^M (0x0D) characters? I cannot duplicate that program
>using normal z/OS UNIX commands (due to IBM's "brain dead" sed compared
>
The following works for me:
#! /bin/sh
# DOS text to UNIX -- convert <CR><LF> to <LF>
exec sed -e 's/^M$//' "$@"
... where "^M" represents an actual 0x0d character, entered in
vi by pressing ctrl-V Return. One could presumably do likewise
with OEDIT HEX ON.
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html