Search

paste: Join multiple files into one

paste command can be used to join multiple files and display on the standard output or redirect it to a new file.

For e.g. let us take the following two example files

file1



file2



These two files can be joined as follows



The files are joined line by line and the default delimiter between the lines is a TAB space. This can be changed using the option "-d".



The output can be sent to anothe file using output redirection.



Instead of joining the files line by line it can be made to join seuentially i.e. one file after another using the option "-s"



The number of input files can be more than too also, the same rules apply to all of them .

2 comments:

  1. ===========================================================================================================================
    Popular Fashion Blogs in Surat
    Fashion Blogger in Surat
    Surat Blogger
    Indian Fashion Blogger
    Fashion Blogger in India

    ReplyDelete
  2. Cabo San Lucas Villas redefine luxury with exclusive house rentals. Experience the epitome of comfort and sophistication with our handpicked villas, complete with personalized services. Elevate your stay with our unique offerings, including Villa vacation rentals in Los Cabos, ensuring a bespoke and indulgent experience in this tropical paradise.

    ReplyDelete