For Programmers: Free Programming Magazines  


Home > Archive > PERL Programming > August 2004 > script to combine two files into a single tab-delimited file









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author script to combine two files into a single tab-delimited file
Marco

2004-08-19, 8:25 am

Hello,

I am needing to learn some perl in no-time at all to achive the following,

I have to files A and B

in A

x1
x2
x3
...
\newline
y1
y2
...
\newline
z1
z2
...

in file B

x
\newline
y
\newline
z
\newline
...

need to output a file C like this

x1 \tab x
x2 \tab x
x3 \tab x
...
\newline
y1 \tab y
y2 \tab y
...
\newline
z1 \tab z
...
...

Any ideas or pointers or any suggestions?

Thanks a lot in advance

Marco
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com