![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Convert UTF8 Format file to ANSI format | rajreddy | UNIX for Dummies Questions & Answers | 9 | 05-25-2007 08:26 AM |
| Convert UTF8 Format file to ANSI format | rajreddy | UNIX for Advanced & Expert Users | 1 | 05-24-2007 06:40 AM |
| convert mmddyy date format to ccyyddd format?? | Bhups | Shell Programming and Scripting | 2 | 09-27-2006 11:30 PM |
| How to convert file format ? | maheshsri | Shell Programming and Scripting | 3 | 11-08-2005 12:51 PM |
| human readable format of file size when doing ls –l | umen | UNIX for Dummies Questions & Answers | 1 | 09-28-2005 09:20 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
To convert multi format file to a readable ascii format
Hi
I have a file which has ascii , binary, binary decimal coded,decimal & hexadecimal data with lot of special characters (like öƒ.ƒ.„İİ¡Š·œƒ.„İİ¡Š· ) in it. I want to standardize the file into ASCII format & later use that as source . Can any one suggest a way a logic to convert such files to ASCII formats. IS there anything in Perl /shell scripting that can fulfill this reqm. pls suggest how to convert the file. thanks, Gaur.Deepti |
|
||||
|
You mean a 7-bit format which can be converted back to the original? Try base64.
If you want the readable parts to remain readable, and there's not too much binary data, the MIME quoted-printable encoding might work. The mimencode command from the metamail suite can encode and decode these formats. (Its original name was mmencode I think; you might have it by that name.) |
|
||||
|
unpack is a tool, you can invent basically any format which is suitable for your needs and it will be fairly easy to encode and decode.
base64 looks like this: SSB3aXNoIHlvdSBjb3VsZCB0cnkgdGhpcyB5b3Vyc2VsZgo= It's what's used inside email messages for attachments if you "view source" (or are old enough to telnet to your IMAP server :-) quoted-printable replaces any non-ascii with an escape code, consisting of an equals sign and a hex code, =3Dlike this=3D (just to give you an idea). You really need to give more details to work on, or just pick one. |
|
||||
|
Thanks era,
I have lot and lot of junk values and other data type values...first of all i will test what ever you told for a sample file and see the results.... Thanks a lot for your time and patience for guiding me ![]() Thanks, Gaur.Deepti |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|