Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-10-2008, 09:19 PM   #1
LQ Newbie
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
file concatnation in unix

Hi friends,

I am having two files A & B
file A contains following data:

file B contains following data:

I want my output file should look like following:
Yash 23
Hary 45
Sam 67

Is this possible using cat command or we have to use some scripting technique.
please help me out.
Old 12-10-2008, 09:43 PM   #2
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try paste - see man paste

Something like

paste -d " " A B

Last edited by billymayday; 12-10-2008 at 09:45 PM.
Old 12-10-2008, 09:54 PM   #3
LQ Newbie
Registered: Dec 2008
Posts: 2

Original Poster
Rep: Reputation: 0
it worked fine..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
unix socket file jahanzeb1982 Linux - Networking 1 03-22-2008 08:57 AM
unix file system anwerreyaz *BSD 1 06-30-2006 12:04 AM
unix file descriptors versus c FILE pointers nodger Programming 9 11-25-2004 07:02 AM
Unix file system Swift&Smart General 4 02-17-2003 10:45 AM
UNIX file system changes Micha Agovic Linux - General 6 07-31-2001 06:07 PM

All times are GMT -5. The time now is 02:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration