- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: need script to add kr/s and kw/s columns for a...
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
Discussions
Discussions
Forums
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
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
тАО07-10-2008 04:44 AM
тАО07-10-2008 04:44 AM
Re: need script to add kr/s and kw/s columns for a specific time window
In answer to your last question:
# perl -e 'while (<>) {chomp;if ($.==1) {$prev=$_;next};print join " ",$prev,$_,"\n";$prev=$_}' file
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2008 05:26 AM
тАО07-10-2008 05:26 AM
Re: need script to add kr/s and kw/s columns for a specific time window
Did I solve your *original* question to your satisfaction, or do you have more?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2008 01:40 PM
тАО07-10-2008 01:40 PM
Re: need script to add kr/s and kw/s columns for a specific time window
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2008 04:08 PM
тАО07-10-2008 04:08 PM
Re: need script to add kr/s and kw/s columns for a specific time window
Points for efforts are greatly appreciated. I believe I provided you answers to your original question and in an oversight you haven't provided feedback.
http://forums11.itrc.hp.com/service/forums/helptips.do?#28
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2008 09:32 PM
тАО07-10-2008 09:32 PM
Re: need script to add kr/s and kw/s columns for a specific time window
Oops, didn't look close enough. Try this:
awk '
BEGIN { getline prev }
{
print prev, $0
prev = $0
}' file
- « Previous
-
- 1
- 2
- Next »