- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- list problem
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
Forums
Discussions
Discussions
Discussions
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
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
04-19-2004 12:58 AM
04-19-2004 12:58 AM
I have a Liste look like
atz-25100010 BGM+785+OOLU5+9'
atz-25100010 RFF+API'
atz-25100010 DTM+232@040405
atz-25100064 BGM+785+TTNU5+5'
atz-25100064 RFF+API'
atz-25100064 DTM+232@040404
atz-251000115 BGM+785+PONU0+9'
atz-251000115 RFF+API@02.0403.0026'
atz-251000115 DTM+232@040408
my problem is that i will sort the liste to
atz-25100010 BGM+785+OOLU5+9' atz-25100010 RFF+API'atz-25100010 DTM+232@040405
atz-25100064 BGM+785+TTNU5+5' atz-25100064 RFF+API'atz-25100064 DTM+232@040404
atz-251000115 BGM+785+PONU0+9' atz-251000115 RFF+API@02.0403.0026' atz-251000115 DTM+232@040408
I can edit the Datei with vi and 3 shift J because the Datei have many entry
Can awk sort the Datei
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 02:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 02:25 AM
04-19-2004 02:25 AM
Re: list problem
paste -s -d"\t\t\n" yourfile
Benefit is that if your file does not have a multiple of 3 number of records, then a partial line is still displayed.
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 02:35 AM
04-19-2004 02:35 AM
Re: list problem
#!/usr/bin/perl
open FILE, "
while(
chomp;
$oldkey=$key;
print;
($key,$data)=split / /;
if($key ne $oldkey){
print "\n";
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 02:39 AM
04-19-2004 02:39 AM
Re: list problem
perl -pe 'chomp unless /DTM/'
This joins lines until a line with "DTM", then a new line is started.
HTH
-- Rod Hills