mirror of https://github.com/veltman/clmystery.git
Adding newlines to hint files
This commit is contained in:
parent
325899cb5b
commit
ea2c95c12c
2
hint1
2
hint1
|
@ -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
hint2
2
hint2
|
@ -1,3 +1,3 @@
|
|||
Try using grep to search for the clues in the crimescene file:
|
||||
|
||||
grep "CLUE" crimescene
|
||||
grep "CLUE" crimescene
|
||||
|
|
2
hint3
2
hint3
|
@ -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
hint4
2
hint4
|
@ -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
hint5
2
hint5
|
@ -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
hint6
2
hint6
|
@ -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
hint7
2
hint7
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue