AIX/Unix convert characters

Homepage Clovertech Forums Read Only Archives Cloverleaf Operating Systems AIX/Unix convert characters

  • Creator
    Topic
  • #54848
    Tom Canavan
    Participant

    I have an interface file that appears to be sending a character outside the range of acceptable Unix characters. They are sending a hex A6, “

Viewing 2 reply threads
  • Author
    Replies
    • #83204
      Charlie Bursell
      Participant

      Try string map in Tcl

    • #83205
      Russ Ross
      Participant

      I found a couple of working scripts on my AIX box that used tr command.

      What I noticed is that tr appears to use octal numbers instead of hex or deciamal.

      Since hex A6 is octal 246, I got this to work using tr for my test.

      Code:

      cat myFile | tr ‘246’ “|”

      Russ Ross
      RussRoss318@gmail.com

    • #83206
      Tom Canavan
      Participant

      Russ, you’re a lifesaver. I wasn’t using the octal value when I used tr. That works.

Viewing 2 reply threads
  • The forum ‘Operating Systems’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,293
Replies
34,435
Topic Tags
286
Empty Topic Tags
10