1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Random Linux+ Question March 22

Discussion in 'Linux+' started by tripwire45, Mar 22, 2006.

  1. tripwire45
    Honorary Member

    tripwire45 Zettabyte Poster

    13,493
    179
    287
    You have two lists in .txt files in your home directory such as you see below:

    list1.txt

    555-1234 Fred
    555-2345 Sally
    555-3456 Bill
    555-4567 Carole

    list2.txt

    555-1234 Sales
    555-2345 Marketing
    555-3456 Testing
    555-4567 Development

    You want to create an output that would combine the lists from both files so that they would display as follows:

    555-1234 Fred Sales
    555-2345 Sally Marketing
    555-3456 Bill Testing
    555-4567 Carole Development

    Then you want to send that output to a new file called directory.txt. Of the commands below, which one will accomplish your goal?

    1. merge list1.txt list2.txt > directory.txt
    2. combine list1.txt list2.txt > directory.txt
    3. link list1.txt list2.txt >> directory.txt
    4. join list1.txt list2.txt > directory.txt
    5. cat list1.txt list2.txt >> directory.txt
     
    Certifications: A+ and Network+
  2. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,623
    115
    224
    Hm - I had to check this on-line, as I regard this operation outside of a proper DB as 'dangerous'. I'll go for [HIDE]4[/HIDE]

    Harry.
     
    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+
  3. tripwire45
    Honorary Member

    tripwire45 Zettabyte Poster

    13,493
    179
    287
    Only one response? No other takers? :blink
     
    Certifications: A+ and Network+
  4. simongrahamuk
    Honorary Member

    simongrahamuk Hmmmmmmm?

    6,199
    125
    199
    [HIDE]4?[/HIDE]

    JMPL
     
  5. zimbo
    Honorary Member

    zimbo Petabyte Poster

    5,215
    98
    181
    [HIDE]im either 2 or 4[/HIDE]

    [HIDE]4[/HIDE] :rolleyes:

    trip please can you provide some reference when the answer is out so we can read up on it! Thnx! 8)

    EDIT: LOL either we all good guessers or we just suck! :twisted:
     
    Certifications: B.Sc, MCDST & MCSA
    WIP: M.Sc - Computer Forensics
  6. tripwire45
    Honorary Member

    tripwire45 Zettabyte Poster

    13,493
    179
    287
    Certifications: A+ and Network+

Share This Page

Loading...