(1 command : 3 pts) You should be in your home directory.
Create a file named earlybirds in your home directory with a listing of all people who logged in on January 3rd 2006.
- Use the .log files and search for anyone with an entry for the date specified.
- Look in the manual for how to use the http://linux.die.net/man/1/cut command in more detail to get just the name.
- If the user logged in several times on that day, their name should only appear once in the file.
- The file should be just a list of names–nothing but names.
- Do this in steps until you get the whole thing.
The files are located in ~cs155/pub/hw2Files, and I've tried doing it every way I can think of. Most recently I tried:
cat ~cs155/pub/hw2Files/*.log | cut -c 1-6 | grep 01.03.06 ~cs155/pub/hw2Files/*.log> ~/earlybirds
The output of that isn't giving me the names of the .log files, which is what I need. I guess I don't understand how to manipulate the "cut" command to give me a file name instead of a field within the files.