Search Results

Search: Posts Made By: naren_14
7,661
Posted By naren_14
Re:HP-UX
Initially i had this problem with HP-UX 11.11i.

HP-UX does not have nawk. awk is having same problem. When it sees binary line greater then 3000 it stops parsing logs.

Any suggestion. I have...
7,661
Posted By naren_14
Thanks all for your help
/usr/bin/nawk OR /usr/xpg4/bin/awk worked.

I have not tried sed as i was not familiar to use it. Iwill try it and let you know.
7,661
Posted By naren_14
still getting error.
Here is what i am trying to do.

awk ' length($0) < 3000 ' access.050531.log |wc -l
awk: record `64.43.232.10 - - [31...' too long
record number 58134
58134

Still it gets to that line...
7,661
Posted By naren_14
how to remove line greater then 3000 characters.
I am using awk and it stops when it encounter line greater then 3000 character. Is there any command which will help me remove line greater then 3000 characters.
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 10:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy