- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: script
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
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
тАО08-13-2002 10:50 PM
тАО08-13-2002 10:50 PM
script
I have two ascii files tab and ext.
tab consists of names (about 200):
A
B
C
D
ext consists of numbers (about 200):
211
425
413
3124
A is 211, B is 425, C is 413 and so on...
Is there a way to merge this two files so that the new file should be like:
A 211
B 425
B 413
D 3124
Thanks in advance.
Raje.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2002 10:55 PM
тАО08-13-2002 10:55 PM
Re: script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2002 11:00 PM
тАО08-13-2002 11:00 PM
Re: script
Thanks for your reply.
I have seen the man page of merge command.
But couldn't do it.
Can you give me the syntax ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2002 11:04 PM
тАО08-13-2002 11:04 PM
Re: script
paste tab ext > tabext
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2002 11:15 PM
тАО08-13-2002 11:15 PM
Re: script
To use paste with a different separation character, use the -d switch, e.g.
paste -d " " tab ext > tabext
The default is a tab character.
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2002 11:22 PM
тАО08-13-2002 11:22 PM
Re: script
paste -d "\ " tab ext >tabext
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2002 12:03 AM
тАО08-14-2002 12:03 AM
Re: script
The answers in which 'paste' is shown are correct, but you didn't give anyone between 8-10 points, meaning that the answers helped you, but that it is not completely satisfying.
Is there anything you would like to see more??
Regards,
Ceesjan