Operating System - HP-UX
1829596 Members
1860 Online
109992 Solutions
New Discussion

Re: covert "c program text" file to ASCII?

 
Dan Alexander
Frequent Advisor

covert "c program text" file to ASCII?

Anyone know how to convert a file from "c program text" to a plain old "ascii text" file? I have some old "xmail' files I need converted! Any help eould be appreciated!

Thanks..
2 REPLIES 2
Jean-Louis Phelix
Honored Contributor

Re: covert "c program text" file to ASCII?

hi,

I think that you can't "convert" a file, but you can perhaphs change the rules to decide what kind of file it seems to be :

- Have a look at the "file" command man page
- make a backup of /etc/magic
- change or add rules to make system guess what you want (there are a lot of comments and examples int the /etc/magic file)

Regards.
It works for me (© Bill McNAMARA ...)
Bill McNAMARA_1
Honored Contributor

Re: covert "c program text" file to ASCII?

not sure what you're looking for, but try

strings filename.c

dos2ux filename.c

Later,
Bill
It works for me (tm)