ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

A Command line Character replacer

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • A Command line Character replacer

    Hey, does anyone know of a stand alone app (PC) that can read a file, and replace a hex character with a different hex character.

    something like this.

    Replacer C:\EDI\MyUser\MyFile.edi 0A 7E

    So the MyFile.edi has line feeds replaced with the "~". I have to do this on the PC. Its too late if its on the Iseries because a third party software picks up the file and it gets pissed if the line feed is in there.

    This app would have to be able to be run in a Hands off manor. I will write one if no one knows of one.

    Tks. DMW.
    Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

  • #2
    Re: A Command line Character replacer

    Hi DMW:

    Look at the SED command within qshell:
    Re: Using sed to replace all instances with a hex value -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHQkZlpcZsDl8OX6kRAhiVAJ9nfa0nkWprpRy3PUPwWtVoyqdYSgCfarfi W0Hih0QHbPS3WAoI9rJrNDg= =LCJQ -----END PGP SIGNATURE-----


    Hope that helps
    GLS.....

    <edit> just re-read the "on the Iseries" line this may not be applicable </edit>
    Last edited by GLS400; July 21, 2008, 09:26 AM.
    The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

    Comment

    Working...
    X