1847882 Members
5299 Online
104021 Solutions
New Discussion

Re: ASCII to Binary

 

ASCII to Binary

Hello,
I used use a program named "atob" in NEC workstaions (UNIX system) that converts ASCII files in binary files. I was use the following syntaxe: atob [ascii file] [bin file].
I??d like to know how can I make this in HP worstations usin HP-UX systems. Is there a same program in this system?
7 REPLIES 7
Jean-Louis Phelix
Honored Contributor

Re: ASCII to Binary

hi,

I don't know what you mean by 'ASCII' and 'Binary' files. If it't dos and unix format, you can use "dos2ux dosfile > unixfile" or "ux2dos unixfile > dosfile"

Regards.
It works for me (© Bill McNAMARA ...)
Klaus Crusius
Trusted Contributor

Re: ASCII to Binary

Hi,

it would be really helpful to know the manual page of atob.
On hpux, you find a programs vis and inv, where the first one creates "visible" output, the second one converts back to whatever the input was.

Regards, Klaus
There is a live before death!
Bill Hassell
Honored Contributor

Re: ASCII to Binary

Yes, a little more explanation is in order. If you want to see the octal or hex represenation of an ASCII file (or any file), use xd or od as in:

xd /etc/profile

If it involves converting ASCII data files with numbers into a binary format, that will be a 100% custom job since there is no standard for a 'binary' data file--the file's format is defined by the program that is using the data.


Bill Hassell, sysadmin
Sundar_7
Honored Contributor

Re: ASCII to Binary


man uuencode

man uudecode
Learn What to do ,How to do and more importantly When to do ?
Jack Werner
Frequent Advisor

Re: ASCII to Binary

Hi there,

You can look at the man pages for the tr command. You can construct any "character sets" you wish and have tr convert bytes from one character set to another.
i'm retired
harry d brown jr
Honored Contributor

Re: ASCII to Binary

get it from here:

http://hpux.cs.utah.edu/hppd/hpux/Misc/btoa-5.2/

live free or die
harry
Live Free or Die
harry d brown jr
Honored Contributor

Re: ASCII to Binary

The man pages are here:

atob and btoa

http://hpux.cs.utah.edu/hppd/hpux/Misc/btoa-5.2/man.html

live free or die
harry
Live Free or Die