The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Runnin Sequential commands silk_eye Shell Programming and Scripting 5 06-05-2007 02:28 AM
Sequential execution of job in cron pankajkrmishra Shell Programming and Scripting 3 08-15-2006 02:19 AM
running script sequential ocjunky Shell Programming and Scripting 2 06-13-2006 12:46 AM
Converting %## back to special characters from an HTML form 98_1LE Shell Programming and Scripting 1 01-14-2006 07:30 AM
inserting uniq sequential numbers at the start of the file jingi1234 UNIX for Dummies Questions & Answers 7 11-19-2005 02:42 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-10-2006
Registered User
 

Join Date: Jul 2005
Posts: 11
Reading special characters while converting sequential file to line sequential

We have to convert a sequential file to a 80 char line sequential file (HP UX platform).The sequential file contains special characters. which after conversion of the file to line sequential are getting coverted into "new line" or "tab" and file is getting distorted. Is there any way to read these speacial characters and convert the file into line sequential file without impacting the format of the file (each line should have 80 char) .
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 07-10-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,502
I'm not sure what the problem is, if you post your code it might help. And define what you mean by special characters -- UTF-8?

However, have you considered the dd utitlity. It's meant for this task.
Reply With Quote
  #3 (permalink)  
Old 07-10-2006
Hitori's Avatar
Registered User
 

Join Date: Jun 2006
Posts: 356
To avoid special characters use base64 encoding (see RFC822), which is merely used in email messages to encode attachments
Check uuencode, uudecode commands
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:52 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0