- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to devide one file to become two file
Operating System - HP-UX
1752810
Members
5639
Online
108789
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
Discussions
Discussions
Forums
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
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
тАО09-06-2001 02:58 AM
тАО09-06-2001 02:58 AM
I want to divide file Xx010801.SOL that has certain format to become file Header.txt and Line.txt that also have certain format.Can any one help me to resolve this problem??I have
attached all of files above.
attached all of files above.
Surya
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2001 03:16 AM
тАО09-06-2001 03:16 AM
Re: How to devide one file to become two file
If you or someone in your company knows perl you/they can accomplish this quite easily.
Live Free or Die
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2001 03:22 AM
тАО09-06-2001 03:22 AM
Re: How to devide one file to become two file
Hi
It looks complex , but as an example of what can be done I am appending a short script. This is for generating line.txt
#! /sbin/sh
awk '{ if ( $1 ~ /PCODE/ ){
print $1";"$2";"....
}
else if ( $3 ~ /KRT.*/ ) {
print count";"$1";"$2...
}
}' INPUTFILE > OUTPUTFILE
The point is to search for the required pattern and then display the results in the format you require..
Hope this helps....
...BPK...
It looks complex , but as an example of what can be done I am appending a short script. This is for generating line.txt
#! /sbin/sh
awk '{ if ( $1 ~ /PCODE/ ){
print $1";"$2";"....
}
else if ( $3 ~ /KRT.*/ ) {
print count";"$1";"$2...
}
}' INPUTFILE > OUTPUTFILE
The point is to search for the required pattern and then display the results in the format you require..
Hope this helps....
...BPK...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2001 05:47 AM
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP