Re: joining two files
| Newsgroups | gmane.editors.sed.user |
|---|---|
| Message-ID | <CAGofMXPsS-k4ReeTdYGMuW+khf6JBPusCjatszQW35YOtK4wMw@mail.gmail.com> |
Try this: paste -d'=' file1 file2 Have a look at the below link: http://www.theunixschool.com/2012/07/10-examples-of-paste-command-usage-in.html *-Regards,* * Satish* On 8 June 2014 18:26, Tim Chase [email protected] [sed-users] < [email protected]> wrote: > On 2014-06-07 22:54, Scott Walters [email protected] > [sed-users] wrote: > > I have two files and i need to join them in the following manner. > > expected output. > > ----------------------- > > key1=val1 > > key2=val2 > > key3=val3 > > ......... > > keyn=valn > > While "paste" is pretty standardly available and the common way to do > it, you *can* do it in GNU sed using the non-standard extension "R": > > sed Rvalues.txt keys.txt | sed 'N;s/\n/=/' > > -tkc > > > > > ------------------------------------ > Posted by: Tim Chase <[email protected]> > ------------------------------------ > > -- > Yahoo Groups Links > > > >