- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Awk: Help
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2002 12:03 PM
04-29-2002 12:03 PM
I am trying to process some very large input lines with awk and I keep getting the error "awk: Input line cannot be longer than 3,000 bytes. The source line number is 59.
I've done a man of awk but I don't see anything to increase the input line limit. Is there a patch for this?
TIA, Bob
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2002 12:06 PM
04-29-2002 12:06 PM
SolutionYou can probably search on "awk" and "3,000" and get several answers; here's my response to a question very much like yours:
-----------------------------------------
That question has come up before and the answer is to use the Gnu version of awk 'gawk' which removes those restrictions. You can download an executable version from any of the HP-UX Porting Centre's.
http://hpux.cs.utah.edu/hppd/hpux/Gnu/gawk-3.1.0/
You will find that gawk is compatible with your version of awk and is in fact a superset of awk. Download it and you should be all set.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2002 12:06 PM
04-29-2002 12:06 PM
Re: Awk: Help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2002 12:07 PM
04-29-2002 12:07 PM
Re: Awk: Help
Read this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xe0487b8d1de3d5118ff40090279cd0f9,00.html
Also try to use GNU Awk from:
http://hpux.cs.utah.edu/hppd/hpux/Gnu/gawk-3.1.0/
C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2002 12:08 PM
04-29-2002 12:08 PM
Re: Awk: Help
http://hpux.cs.utah.edu/hppd/hpux/Gnu/gawk-3.1.0/
-Yates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2002 12:08 PM
04-29-2002 12:08 PM
Re: Awk: Help
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2002 12:09 PM
04-29-2002 12:09 PM
Re: Awk: Help
This is a limitation in HP-UX 'awk'. Get a copy of the gnu version:
http://gatekeep.cs.utah.edu/hppd/hpux/Gnu/gawk-3.1.0/
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2002 12:10 PM
04-29-2002 12:10 PM
Re: Awk: Help
Set kernel parameter large_ncargs_enable=1 in SAM and rebuild the kernel, then reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2002 12:16 PM
04-29-2002 12:16 PM
Re: Awk: Help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2002 12:35 PM
04-29-2002 12:35 PM
Re: Awk: Help
I installed gawk and it worked.
S.K, I was going to adjust my kernel but I couldn't find the value you listed. I then did a search on 'awk', '3,000', and 'large_ncargs' and I found a thread that both A. Clay and JRF answered and it explained about the ncargs problem rather forcefully. I guess I should have mentioned that I am on HP-UX 11i.
Thanks for all the quick responses.
Bob