![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| line length | Sreejith_VK | Shell Programming and Scripting | 4 | 03-10-2008 10:46 AM |
| Find the length of the longest line | panknil | Shell Programming and Scripting | 1 | 11-03-2007 05:43 AM |
| AWK - Line length validation | en7smb | Shell Programming and Scripting | 3 | 05-09-2007 12:04 PM |
| grep line length limit | hnhegde | Shell Programming and Scripting | 3 | 10-02-2006 12:47 PM |
| Mail attatchment line length | brown_b | UNIX for Advanced & Expert Users | 5 | 11-05-2003 11:56 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Grep line length constraint problem - help!
I'm fairly new to shell programming and have run into a line length constraint of grep. I need to run grep on a file to remove certain lines, but grep apparently is limited to lines of 2048 characters or less and most of the lines in the file exceed that limit.
cat ${FULLNAME} | grep -v "${LINE_TO_REMOVE}" > ${DATAFILE} grep: 0652-226 Maximum line length of 2048 exceeded. What alternatives are available? the lines that need to be removed are less than 100 characters in length? could I use that fact to remove them? I would still need to check that they match the value of ${LINE_TO_REMOVE}. Also the lines to remove are the last and first lines of the file. Any suggestions would be welcome! Thanks! -j Last edited by jvander; 04-27-2005 at 01:17 PM.. |
| Bookmarks |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|