Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
merge 2 files using perl
Name: gounix Date: June 4, 2007 at 00:47:26 Pacific OS: SunOS CPU/Ram: xx Product: xx
Comment:
Hi Could anybody give me way out in perl to create a target file from two source files as given below
file1 line1.. line2..
file2 line1.. line2...
expected output file should be line1 of file1 line1 of file2 line2 of file1 line2 of file2 ... ..
Name: nails Date: June 4, 2007 at 07:03:23 Pacific
Reply:
Unless you are doing homework, you don't need perl for this problem. Use the paste command:
paste file1 file2 > outputfile
0
Response Number 2
Name: gounix Date: June 8, 2007 at 00:14:46 Pacific
Reply:
Thanks nails.
I know this option.
But paste is having limitation (atleast in my SunOS) that it can read aournd 500 characters. I have a file containing 15000 characters long lines in it
pass out comments if any
0
Response Number 3
Name: gounix Date: June 8, 2007 at 00:15:51 Pacific
Reply:
refresh
0
Response Number 4
Name: gounix Date: June 8, 2007 at 00:17:01 Pacific
Summary: Hi All, Can someone suggest the way to parse the html file to look for specific text using perl? or any programming language I have abc.html file; which is result of one of automated test suite output...
Summary: Hi All, I've seen many questions/answers about combining or merging two files using awk but I can't quite get them to work for my situation. It's possible there is an answer out there but just haven't...
Summary: hello, i'm trying to merge 2 lines using c-shell script... i can't seem to think of a way to get the \n character... can anyone help? example, hello (spaces) world! output: hello world! thanks for ...