Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8975585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:55:07+00:00 2026-06-15T18:55:07+00:00

Input file1: 1 5 6 Input file2: 4.5 6.7 9.9 Output: 1 4.5 5

  • 0

Input file1:

1
5
6

Input file2:

4.5
6.7
9.9

Output:

1  4.5
5  6.7
6  9.9

I tried join but it doesn’t work here as there’s no common field. Does anyone have ideas about this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T18:55:08+00:00Added an answer on June 15, 2026 at 6:55 pm

    I think you’re looking for the paste command rather than join, as per the following transcript:

    pax> cat file1
    1
    5
    6
    
    pax> cat file2
    4.5
    6.7
    9.9
    
    pax> paste file1 file2
    1   4.5
    5   6.7
    6   9.9
    

    Consult your friendly neighbourhood man page (or info page) for more details, such as using -d to select delimiters other than TAB, or -s to process the files sequentially rather than in parallel.

    pax> paste -d= file1 file2
    1=4.5
    5=6.7
    6=9.9
    
    pax> paste -d, -s file1 file2
    1,5,6
    4.5,6.7,9.9
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Why does the code below not produce an identical output file to the input
I have the following code to open a input and output file: if ((source_file_ptr
I need to open multiple files (2 input and 2 output files), do complex
I have a perl program that takes input and output file arguments, and I'd
I have an application that takes some input and generates configuration files as output.
This tail -n 1217060 input.sql > /disk2/mysql_dump/output.sql is not writing to the output file.
So a FILE stream can have both input and output buffers. You can adjust
Input: I have a LaTeX file, with plain text & math formulas. Desired output:
I am trying to log the input/output of expect to an open file. The
Example input: SERVER_NAME=server1 PROFILE_NAME=profile1 ... Example output: SERVER_NAME=server3 PROFILE_NAME=profile3 ... This file will use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.