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

Random Linux+ Question #49

Discussion in 'Linux+' started by tripwire45, Jul 28, 2005.

  1. tripwire45
    Honorary Member

    tripwire45 Zettabyte Poster

    13,493
    179
    287
    You want to use the sed text editor to delete the text in a document starting with line 20 and going all the way to the last line in a document called "sedtest". Which of the following commands will accomplish your goal? Choose only one answer.

    1. sed '20,#d' sedtest
    2. sed 20,$d sedtest
    3. sed '20,&x' sedtest
    4. sed '20,$d' sedteset
    5. sed 20,#d sedtest
    6. sed 20,%d 'sedtest'

    Answer later.
     
    Certifications: A+ and Network+
  2. ffreeloader

    ffreeloader Terabyte Poster

    3,661
    106
    167
    Well, since I have to type a set number of characters to create a post I'll say it this way. 4 is my answer.
     
    Certifications: MCSE, MCDBA, CCNA, A+
    WIP: LPIC 1
  3. starfury6

    starfury6 Nibble Poster

    53
    0
    33
    I cop.... er guess at 4 also :)
     
    Certifications: RHCT4, RHCT5
    WIP: SCSA
  4. tripwire45
    Honorary Member

    tripwire45 Zettabyte Poster

    13,493
    179
    287
    Answer time. Congratulations. #4 is the answer. :)
     
    Certifications: A+ and Network+

Share This Page

Loading...