'Challenge 2', 'menu'=>'challenge')); ?>
K-LUG Linux Challenge and Puzzler #2

This challenge has ended. Here are the answers.

(Winners: Tina Wood, Challenge; John Steenbergen, Puzzler)

Challenge

The goal of this Challenge is to use grep to find certain words in the text files in your current directory.

First, create a few files with your favorite editor or the following commands:

echo "This is a test" > file1.txt echo "This is another test" > file2.txt cat file1.txt file2.txt > file3.txt ls > README

Now, look up grep in the man pages and see if you can make grep print the lines from the files that have the word "another" on them.

When you figure it out, explain how you did it and send it to NeffK@IEEE.Org with the word "challenge" in the subject line.

For extra credit, have grep print out the line numbers. Or make grep print a line before and after the line for which it's supposed to be searching.

Puzzler

Given a number of single-column data files, combine them into one file with as many commands as you need. Then convert the multiple-column data file into a multiple row data file. Hint: This can be done with a single command. Mail the answer to NeffK@IEEE.Org with the word "puzzler" in the subject line to win.

Prize

The sticker or emblem or your choice from Think Geek.