The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > UNIX and Linux Applications
Google UNIX.COM


UNIX and Linux Applications Questions involving software not covered by other forum go here. This includes Databases and Middleware.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Maximum input file size in "Diff" Command Neeraja UNIX for Dummies Questions & Answers 1 01-17-2007 06:09 AM
Line with maximum no . of characters mohapatra Shell Programming and Scripting 4 10-11-2006 10:31 PM
maximum number of times - a file can be opened matrixmadhan High Level Programming 3 03-21-2006 07:24 AM
maximum number of input on solaris marcello UNIX for Dummies Questions & Answers 1 03-23-2005 02:06 AM
What is the Maximum number of characters that i can store in a variable? pcshan UNIX for Advanced & Expert Users 9 08-11-2004 02:25 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-11-2008
Registered User
 

Join Date: May 2008
Posts: 4
Unhappy handling maximum number characters in an input file

Hi,

Can anyone help me? An input file has three lines. Each line should only be 2098 as number of characters however line 2 of the input file has more than the maximum number of characters, it exceeded up to 4098. What should I do so that could handle maximum number of characters? that it could still process even if the characters of a line exceeded?

Hope you could help me on this..

Thanks
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-12-2008
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,128
I didn't get it, do you want to process the input file if the number is above certain value or not ? What solution you are looking for, shell script, perl, awk ? What access you have and what is the OS ?
In general, before deploying the input file, you have to scan each line, count the number of characters, and proceed based on the returned value.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:59 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