- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: awk script
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
08-30-2001 05:38 AM
08-30-2001 05:38 AM
awk script
I have a file and each line is greater than 3000 bytes. I have to search the word and count and print it. But the problem with awk I cannot do becuase of its 3000 bytes restriction.
Is someone have any alternative inputs.
Thanks
Zafar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2001 05:44 AM
08-30-2001 05:44 AM
Re: awk script
Your best bet is to download GNU's versions of awk - 'gawk'. It is available from any of the HP-UX Porting Centres and has dynamically allocated maximum record size that can be set from the command line.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2001 05:48 AM
08-30-2001 05:48 AM
Re: awk script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2001 05:49 AM
08-30-2001 05:49 AM
Re: awk script
http://www.bagley.org/~doug/shootout/bench/wordfreq/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2001 11:34 AM
08-30-2001 11:34 AM
Re: awk script
well, you can still substitute something in those long
lines with a NEWLINE using something like "tr(1)" and
then pipe that to "awk(1)" to find and count it:
tr "\040\t" "\n" YOUR-FILE-HERE | awk ...
This example would split your file at every space and
tab into a new line, hence getting around the line length
restriction...
Of course, you max add more "split-characters" into the
first parameter of "tr(1)"!
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2001 12:21 PM
08-30-2001 12:21 PM
Re: awk script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2001 11:02 AM
08-31-2001 11:02 AM
Re: awk script
Is all you want the word count? If so, will wc work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2001 03:48 PM
08-31-2001 03:48 PM