Skip to content

Commit

Permalink
Adding newlines to hint files
Browse files Browse the repository at this point in the history
  • Loading branch information
veltman committed Jan 29, 2016
1 parent 325899c commit ea2c95c
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion hint1
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ Try poking around what's in a file by using the 'head' command:

head -n 20 people

This will show you the first 20 lines of the 'people' file.
This will show you the first 20 lines of the 'people' file.
2 changes: 1 addition & 1 deletion hint2
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Try using grep to search for the clues in the crimescene file:

grep "CLUE" crimescene
grep "CLUE" crimescene
2 changes: 1 addition & 1 deletion hint3
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
In order to track down our potential witness, we need to figure out where she lives.

Try using 'head' on some of the files like 'people' and 'vehicles' and see where we might find that.
Try using 'head' on some of the files like 'people' and 'vehicles' and see where we might find that.
2 changes: 1 addition & 1 deletion hint4
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ To find all the Annabels' addresses, use the 'people' file:

grep "Annabel" people

Notice that not all of the results are worth investigating. Remember what we know about Annabel.
Notice that not all of the results are worth investigating. Remember what we know about Annabel.
2 changes: 1 addition & 1 deletion hint5
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
head -n 173 streets/Mattapan_Street | tail -n 1

This will give you just line 173 of Mattapan street, because it will take first 173 lines, and then take
the last line from those.
the last line from those.
2 changes: 1 addition & 1 deletion hint6
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ To find a matching license plate, or a matching car, you can use grep on the 've

grep "L337" vehicles

This doesn't give us anything useful - why not? Try using 'head' on the file to investigate its structure.
This doesn't give us anything useful - why not? Try using 'head' on the file to investigate its structure.
2 changes: 1 addition & 1 deletion hint7
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ we need to get multiple lines AROUND each match. We can use the -A, -B, or -C o

grep -A 5 "L337" mystery/vehicles

This will match the license plates that contain "L337" and, for each match, show us the five lines AFTER it.
This will match the license plates that contain "L337" and, for each match, show us the five lines AFTER it.
2 changes: 1 addition & 1 deletion hint8
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ If you only want to see the number of matches, you can use grep's -c option (the

Or you can pipe the result to 'wc -l':

cat Fitness_Galaxy AAA United_MileagePlus | grep "John Smith" | wc -l
cat Fitness_Galaxy AAA United_MileagePlus | grep "John Smith" | wc -l

0 comments on commit ea2c95c

Please sign in to comment.