The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Reading a binary file in text or ASCII format Nagendra High Level Programming 3 12-03-2008 06:11 PM
To convert multi format file to a readable ascii format gaur.deepti UNIX for Dummies Questions & Answers 5 03-25-2008 03:03 PM
Need to convert Binary files to ascii Reza Nazarian UNIX for Advanced & Expert Users 5 11-05-2004 08:46 PM
Convert Binary data to ascii data krishna UNIX for Advanced & Expert Users 4 11-05-2004 04:12 PM
Convert ASCII to BINARY pc9456 UNIX for Advanced & Expert Users 2 06-24-2002 07:46 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-16-2009
serendipity1276 serendipity1276 is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 9
how to convert an ASCII file into binary format? (in the C shell)

I want to convert a text file into binary format in Solaris. Let's say the content of that file "filename" is:

This is a test.



If you go to the C shell and type

cat filename

You will see its content. I want to know if there's any quick way in UNIX to convert that file into binary format, where if someone did a cat command, they will only gibberish. And also, how would I be able to convert that binary file back into ASCII again? Thanks.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:39 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0