| | |
Record too long.......
Please support our Shell Scripting advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Jul 2009
Posts: 33
Reputation:
Solved Threads: 4
Hi,
I am trying to log a portion of the log file depending upon the "WorkOrderNumber" and "level".
The shell script i've written is as follows:-
For a particular WorkOrderNumber, the record is very long (4253 characters).
When I run the script I get following message:-
awk: record `[2009-09-17 08:26]IN...' too long
record number 882
How to get rid of this error?
I don't want to tamper with input.log file.
Please help.
I am trying to log a portion of the log file depending upon the "WorkOrderNumber" and "level".
The shell script i've written is as follows:-
Shell Scripting Syntax (Toggle Plain Text)
cat input.log | awk '/\[WorkOrderNumber/' | awk /120600012/ | awk /INFO/ | tee log.vw
For a particular WorkOrderNumber, the record is very long (4253 characters).
When I run the script I get following message:-
awk: record `[2009-09-17 08:26]IN...' too long
record number 882
How to get rid of this error?
I don't want to tamper with input.log file.
Please help.
Add to my reputation if you think I really helped you. :)
Is this a solaris machine? You can try using GNU's awk which won't throw this error. The name for it is "gawk". You should be able to get solaris package files for GNU utils. I think www.ibiblio.org has them on their FTP site.
I don't know what version of solaris you are running. Just google "Solaris N gawk", such as "Solaris 9 gawk":
Solaris 9: http://www.sunfreeware.com/programlistsparc9.html
Solaris 9: http://www.sunfreeware.com/programlistsparc9.html
![]() |
Similar Threads
- random-access files (C++)
- Collins: Why this scientist believes in God (Geeks' Lounge)
- StackInheritance and System.Collections class (C#)
- Needs Brainstorming!!! (Java)
- /Code: Hello, Please Help Me! I need help in java Project (Java)
- AIM 6.1 Setting/Registry (Windows NT / 2000 / XP)
- AIM 6.1 Setting/Registry (Community Introductions)
- Opening for Business Dev. Managers in New Jersey (Tech / IT Consultant Job Offers)
- Need Help Reading a csv file created from MSExcel (C)
Other Threads in the Shell Scripting Forum
- Previous Thread: Kill top 5 processes
- Next Thread: sed substitution with variables
| Thread Tools | Search this Thread |
Tag cloud for Shell Scripting






