Limit of no of characters PER LINE in a unix file


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Limit of no of characters PER LINE in a unix file
# 1  
Old 10-09-2006
MySQL 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  
Old 10-09-2006
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  
Old 10-09-2006
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  
Old 10-10-2006
Where can i find the limit.h .. can u give the path in HP UX
# 5  
Old 10-10-2006
Well i found that in include directory , but atm there is no variable like LINE_MAX.
I am using AIX
# 6  
Old 10-10-2006
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 .
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Limit the number of characters in bash output

Hi, I need some help with this: I'm making a script which does a couple of things with image files. The script is supposed to echo the number of each image it is processing like this: Processing image1.jpgThe problem is with images with very long filenames, so I want to know how to limit the... (5 Replies)
Discussion started by: Shadow_Reaper
5 Replies

2. UNIX for Dummies Questions & Answers

Limit reoccurrance of characters in lines

Hey guys and gals, Working on a script to limit the reoccurrance of characters in a line. sed "/\(.\).*\1/d" -i file.txt sed "/\(.\).*\1.*\1/d" -i file.txt sed "/\(.\).*\1.*\1.*1/d" -i file.txt .. To limit character reoccurance with 1x, 2x, 3x etc. However I would like to be able to... (2 Replies)
Discussion started by: TAPE
2 Replies

3. Shell Programming and Scripting

Unix command to select first few characters and last character of a line

I have a huge file and I want to select first 10 charcters and last 2 characters of everyline and than will filter the unique line. I know, it must be easy bt I am new to unix scripting:) Ex. I have file as below and need to e3kbaird and last 2 characters. and than unique records. ... (3 Replies)
Discussion started by: Sanjeev Yadav
3 Replies

4. UNIX for Dummies Questions & Answers

Limit the number of characters in a bash output

I have a script that outputs the weather on two lines. If possibly I would like to set a character limit on them Currently it outputs something like but I would like to limit the lines so appends an ellipsis if nescessary: This is the script #! /bin/bash curl -s --connect-timeout... (2 Replies)
Discussion started by: Light_
2 Replies

5. UNIX for Dummies Questions & Answers

To bring all characters in one line in unix

How to bring all characters in one line in unix/solaris ? Eg : If it is a b c then it should show abc (2 Replies)
Discussion started by: mahen1naik
2 Replies

6. Shell Programming and Scripting

Limit on Number of characters in a line - Vi editor

In the vi editor, there seems to be some limit on the number of characters could be allowed in single line. I tried a line with characters up to 1880. It worked. But when i tried with something of 5000 characters, it doesnt work. Any suggestions. Thanks in advance! (2 Replies)
Discussion started by: nram_krishna@ya
2 Replies

7. HP-UX

cron 80 characters limit

Hello everyone. I am trying to set up a monitor based on a "top" command statistic as follows: top -bc -n1 > output.txt I've put this command into a small script which is called by a cron... but there is something strange happening: the cron is limiting the output to output.txt to 80... (3 Replies)
Discussion started by: MartinF
3 Replies

8. AIX

Is the Length of User ID for AIX Limit to 8 Characters?

Hi, I'm using AIX version 5.3 currently. I'm trying to create a user id, e.g. andyleong, which the system prompted the length is too long. 1. I would like to know is that the length of user id is limited to maximum 8 characters for AIX. 2. Is it apply to all versions of AIX? If no... (2 Replies)
Discussion started by: meihua_t
2 Replies

9. UNIX for Dummies Questions & Answers

unix file system V filename limit

Why unix system V has a filename size limit of 14 characters.How other versions of Unix got around this problem.Can anybody help? (7 Replies)
Discussion started by: admirer
7 Replies
Login or Register to Ask a Question