Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, i am totally noob in Linux. My problem is: i have 3 files with 2 colums in each. 1. column is a date, the second one consist a number. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2011
    Posts
    2

    3 files to 1


    Hi, i am totally noob in Linux.

    My problem is: i have 3 files with 2 colums in each.

    1. column is a date, the second one consist a number.

    I would like to make a 4. file, with each date in it, whether or not they are in every 3 file, or just in one or two.

    The problem is the content of 2. column, the content of which i would like to list in 3 columns. If the date appears in all 3 files, i should have 3 columns with a number in it, if the date misses in 1 file it should say "0".

    For example:

    File 1.
    1. z
    2. u
    6. p
    7. l

    File 2.
    1. o
    3. k
    4. h
    7. w
    10. s

    File3.
    8. j
    10. g


    What i need to
    see:
    1. z.o.0
    2. u.0.0
    3. 0.k.0
    4. 0.h.0
    6. p.0.0
    7. l.w.0
    8. 0.0.j
    10. 0.s.g

  2. #2
    Just Joined!
    Join Date
    Aug 2011
    Posts
    2
    Thank you in advance!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •