Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Use 2 files and print each line of each one side-by-side

by Kenosis (Priest)
on Feb 19, 2014 at 00:21 UTC ( [id://1075408]=note: print w/replies, xml ) Need Help??


in reply to Re: Use 2 files and print each line of each one side-by-side
in thread Use 2 files and print each line of each one side-by-side

paste is a nice solution. However, the OP didn't state whether the files had the same number of lines or not, but did mention printing from both files. In the case of files with a different number of lines, paste continues printing up to the end of the larger file--and corresponding blanks for the smaller--after the smaller file's exhausted. This exception does not meet the OP's specs of printing from both files on each line. However, it may be the case the the files have the same number of lines; if so, this simply isn't an issue.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1075408]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-03-28 17:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found