HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script help
Operating System - HP-UX
1833034
Members
2431
Online
110049
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
Go to solution
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
01-23-2003 12:00 PM
01-23-2003 12:00 PM
Hi admins
I have a file in blocks of 6 entries each ( see the attachment).The blocks are saperated by a blank line. How to format the file such that all six fields are in one line. Then next block in second line like wise......
SessionID:sessiontype:Status
The basic idea is to find the last succesfull full backup and change the protection. If the last backup was not succesful then re run the backup.
Thanks in advance.
I have a file in blocks of 6 entries each ( see the attachment).The blocks are saperated by a blank line. How to format the file such that all six fields are in one line. Then next block in second line like wise......
SessionID:sessiontype:Status
The basic idea is to find the last succesfull full backup and change the protection. If the last backup was not succesful then re run the backup.
Thanks in advance.
keep smiling
Solved! Go to Solution.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2003 12:32 PM
01-23-2003 12:32 PM
Solution
Hi George:
Here's a crude quick one:
# awk '/SessionID/ {ID=$3};/Session type/ {TYPE=$5};/Status/ {print ID":"TYPE":"$3}' inputfile
...using your supplied data, the above would output this:
2002/12/11-23:(incr):Completed/Failures
2002/12/13-17:(incr):Completed/Failures
2002/12/14-14:(incr):Completed
...
Regards!
...JRF...
Here's a crude quick one:
# awk '/SessionID/ {ID=$3};/Session type/ {TYPE=$5};/Status/ {print ID":"TYPE":"$3}' inputfile
...using your supplied data, the above would output this:
2002/12/11-23:(incr):Completed/Failures
2002/12/13-17:(incr):Completed/Failures
2002/12/14-14:(incr):Completed
...
Regards!
...JRF...
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