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
how to cut first 3 characters of each line in a file kittusri9 Shell Programming and Scripting 7 01-29-2009 12:53 AM
Is the Length of User ID for AIX Limit to 8 Characters? meihua_t AIX 2 04-07-2008 03:04 AM
How to replace characters 7 through 14 of every line in a file jakSun8 Shell Programming and Scripting 9 12-13-2007 02:13 AM
Replacing characters in file with line break johnemb Shell Programming and Scripting 10 04-26-2007 08:38 AM
Filling in characters to line a file up hcclnoodles Shell Programming and Scripting 1 07-27-2004 11:11 PM

Closed Thread
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
  #1 (permalink)  
Old 10-09-2006
mohapatra mohapatra is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 8
Thumbs up Limit of no of characters PER LINE in a unix file

Hi , Whats the limit of characters PER LINE in a unix file , allowed for editing..sort , cut , sed , awk etc
  #2 (permalink)  
Old 10-09-2006
anbu23 anbu23 is offline Forum Advisor  
Registered User
  
 

Join Date: Mar 2006
Location: Bangalore,India
Posts: 1,398
Quote:
Originally Posted by mohapatra
Hi , Whats the limit of characters PER LINE in a unix file , allowed for editing..sort , cut , sed , awk etc
Maximum characters per line for SORT is 2048
  #3 (permalink)  
Old 10-09-2006
anbu23 anbu23 is offline Forum Advisor  
Registered User
  
 

Join Date: Mar 2006
Location: Bangalore,India
Posts: 1,398
Quote:
Originally Posted by mohapatra
Hi , Whats the limit of characters PER LINE in a unix file , allowed for editing..sort , cut , sed , awk etc
I think maximum characters per line vary from one version of OS to other .
I found variable LINE_MAX in limits.h which controls maximum characters per line in HP-UNIX.
  #4 (permalink)  
Old 10-10-2006
mohapatra mohapatra is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 8
Where can i find the limit.h .. can u give the path in HP UX
  #5 (permalink)  
Old 10-10-2006
mohapatra mohapatra is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 8
Well i found that in include directory , but atm there is no variable like LINE_MAX.
I am using AIX
  #6 (permalink)  
Old 10-10-2006
anbu23 anbu23 is offline Forum Advisor  
Registered User
  
 

Join Date: Mar 2006
Location: Bangalore,India
Posts: 1,398
Quote:
Originally Posted by mohapatra
Well i found that in include directory , but atm there is no variable like LINE_MAX.
I am using AIX
I found that variable when i was going through the man cut. There they mentioned that the maximum characters per line is given by LINE_MAX . Check the man for cut or fold .
Closed Thread

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 10:44 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