LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   file concatnation in unix (https://www.linuxquestions.org/questions/linux-newbie-8/file-concatnation-in-unix-689728/)

prmsuthar 12-10-2008 09:19 PM

file concatnation in unix
 
Hi friends,

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


file B contains following data:
23
45
67

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.

billymayday 12-10-2008 09:43 PM

Try paste - see man paste

Something like

paste -d " " A B

prmsuthar 12-10-2008 09:54 PM

thanks...:)
it worked fine..


All times are GMT -5. The time now is 10:39 AM.