Ready to be published? LXer is read by around 350,000 individuals each month, and is an excellent place for you to publish your ideas, thoughts, reviews, complaints, etc. Do you have something to say to the Linux community?
we will see several command methods with which we can read 2 files alternatively line by line, which means line #1 from file #1 then line #1 from file 2, then line #2 from file #1 then line #2 from file 2 ... and so on. This way of reading will produce a combined file output in which lines are alternated between the files.