- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Join two Files
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
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
тАО06-13-2010 11:11 PM
тАО06-13-2010 11:11 PM
Join two Files
I have 2 file
cat f1
1
2
3
cat f2
sun
mon
tue
wen
i want the out put as third file f3 with no tab in between "1" "sun"
#cat f3
1 sun
2 mon
3 tue
I used paste command as given below
#/usr/bin/paste -d\\ f1 f2 > /home/f3
Iam getting the req output,
#/usr/bin/paste -d\\ /home/f1 /home/f2 > /home/f3
but wen i used above command(the path of the file included), iam getting error.
Will anyone help me to solve this problem by using the path or any other command for joining two file without tab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2010 11:53 PM
тАО06-13-2010 11:53 PM
Re: Join two Files
paste -d " " f1 f2
With no character at all:
paste -d "" f1 f2
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2010 12:39 AM
тАО06-14-2010 12:39 AM
Re: Join two Files
is any command for that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2010 03:08 PM
тАО06-14-2010 03:08 PM
Re: Join two Files
try use only one "\" following by a space.
#/usr/bin/paste -d\ /home/f1 /home/f2 > /home/f3
I personally would use -d " " instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2010 08:05 PM
тАО06-14-2010 08:05 PM
Re: Join two Files
>..is that possible With out space,
is any command for that:
- Yes , check this out: this is without inserting a space
# paste f1 f2 | awk '{print $1,$2}' > f3
Enjoy, Have fun!,
Raj.