Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
google site



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

Reply
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-12-2010
Registered User
 

Join Date: Aug 2005
Location: Bangalore
Posts: 245
Thanks: 2
Thanked 1 Time in 1 Post
write in ebcdic format

Hi - Is there a way to write the data in the ebcdic format. I mean I already have one file in the ebcdic format and I have to add a couple of rows to it in the ebcdic format. could any one please let me know how can I do that.
Sponsored Links
  #2  
Old 03-12-2010
root cause analyst
 

Join Date: Nov 2008
Location: Amsterdam
Posts: 1,769
Thanks: 5
Thanked 78 Times in 75 Posts
Quote:
Originally Posted by ahmedwaseem2000 View Post
Hi - Is there a way to write the data in the ebcdic format. I mean I already have one file in the ebcdic format and I have to add a couple of rows to it in the ebcdic format. could any one please let me know how can I do that.
try something like this:

Code:
dd if=infile.ebcdic of=infile.ascii conv=ascii
echo Here is a new line>>infile.ascii
dd if=infile.ascii of=newfile.ebcdic conv=ebcdic

Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
read/write,write/write lock with smbclient fails swatidas11 IP Networking 1 03-05-2010 10:26 AM
write a perl script or kornshell reading a two files and outputting to comma format deiow Shell Programming and Scripting 0 09-13-2009 07:26 AM
how to write a file to binary format in C ? serendipity1276 Programming 3 07-17-2009 11:03 AM
how to write script in compress format naveeng.81 Shell Programming and Scripting 1 04-17-2008 07:18 AM
write data into a text file in bold format miltony UNIX for Dummies Questions & Answers 1 09-28-2005 07:21 AM



All times are GMT -4. The time now is 07:36 AM.