HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Record Count and Word count ( HP and Solaris)
Operating System - HP-UX
1833587
Members
3835
Online
110061
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
06-15-2004 06:13 AM
06-15-2004 06:13 AM
Record Count and Word count ( HP and Solaris)
When I do a record count I get file name and record count,
but I need just the record count and "not the file name"
however the problem in Solaris it has few spaces while in HP it does not.
Can someone assist in Both the Machines to just capture "RECORD COUNT and not file name"
but I need just the record count and "not the file name"
however the problem in Solaris it has few spaces while in HP it does not.
Can someone assist in Both the Machines to just capture "RECORD COUNT and not file name"
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2004 06:27 AM
06-15-2004 06:27 AM
Re: Record Count and Word count ( HP and Solaris)
wc file |awk '{print $1}'
Rgds...Geoff
Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2004 06:28 AM
06-15-2004 06:28 AM
Re: Record Count and Word count ( HP and Solaris)
# wc /tmp/vpart3_pm.txt | cut -d" " -f1-3
215 848 10446
#
live free or die
harry
215 848 10446
#
live free or die
harry
Live Free or Die
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2004 06:31 AM
06-15-2004 06:31 AM
Re: Record Count and Word count ( HP and Solaris)
Hi,
Here is another way to do it. Just send the file as standard input to the 'wc' command:
wc -l 185
JP
Here is another way to do it. Just send the file as standard input to the 'wc' command:
wc -l
JP
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP