HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- awk problem..
Operating System - Tru64 Unix
1827893
Members
1791
Online
109969
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-13-2006 10:58 PM
06-13-2006 10:58 PM
awk problem..
Hello..
Please I have a file as follows:
file1:
name1_operation120060613111041
name2_operation2tr320060614111043
name3_operation3ar20060615111042
name4_operation44420060616111041
etc..
so difference is in name operation date and time
name is for example name1
operation is for example operation2
date is for example 20060616
and time is 1041
also note that operation string is different always once it is
operation444 and second time it is operation2tr3
there are only those 4 kinds of operations..
how can I sort and create 4 different files for 4 operations and add those lines that have operation operation1 in one file others that have operation operation2tr3 in secont file in 3. file operation3ar operation lines, and in 4. operation444 ..
any hints or help code??
cheers
Please I have a file as follows:
file1:
name1_operation120060613111041
name2_operation2tr320060614111043
name3_operation3ar20060615111042
name4_operation44420060616111041
etc..
so difference is in name operation date and time
name is for example name1
operation is for example operation2
date is for example 20060616
and time is 1041
also note that operation string is different always once it is
operation444 and second time it is operation2tr3
there are only those 4 kinds of operations..
how can I sort and create 4 different files for 4 operations and add those lines that have operation operation1 in one file others that have operation operation2tr3 in secont file in 3. file operation3ar operation lines, and in 4. operation444 ..
any hints or help code??
cheers
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2006 11:36 PM
06-13-2006 11:36 PM
Re: awk problem..
Hi,
grep opereration1 file > file1
grep opereration2 file > file2
grep opereration3 file > file3
grep opereration4 file > file4
greetings,
Michael
grep opereration1 file > file1
grep opereration2 file > file2
grep opereration3 file > file3
grep opereration4 file > file4
greetings,
Michael
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP