HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- script need for the data
Operating System - HP-UX
1832595
Members
3058
Online
110043
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
08-21-2003 03:27 AM
08-21-2003 03:27 AM
script need for the data
Dear Admins:
I have a data file ( collect disk data from glance).
It will show me two times of the disk report.
But I only want the last one.( different from the time )
And also want the whole line of the bigger two value of the record from the unti field.
Can someone give me some suggestion ?
thanks
Jack Hu
I have a data file ( collect disk data from glance).
It will show me two times of the disk report.
But I only want the last one.( different from the time )
And also want the whole line of the bigger two value of the record from the unti field.
Can someone give me some suggestion ?
thanks
Jack Hu
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2003 04:31 AM
08-21-2003 04:31 AM
Re: script need for the data
Hi
nl -ba file|grep "\-\-\-"|tail -n 1|cut -c1-6|
while read a rest
do
tail +$a file
done
Will give the second one
Steve Steel
nl -ba file|grep "\-\-\-"|tail -n 1|cut -c1-6|
while read a rest
do
tail +$a file
done
Will give the second one
Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2003 04:45 AM
08-21-2003 04:45 AM
Re: script need for the data
Hi
For the high values
sort -k 5,5 file|grep -v "\-\-\-"|
while read line
do
read line1
echo "$line1"
done
Steve Steel
For the high values
sort -k 5,5 file|grep -v "\-\-\-"|
while read line
do
read line1
echo "$line1"
done
Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2003 04:51 AM
08-21-2003 04:51 AM
Re: script need for the data
Started to answer this question, saw Steve's 2nd answer, liked it and decided to sit on the fence. Best decision I ever made and if it doesn't work, blame Steve. :p
Yesterday is history, tomorrow is a mystery, today is a gift. That's why it's called the present.
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