zeus
4 years ago
4 changed files with 11 additions and 9 deletions
@ -1,8 +1,14 @@ |
|||
echo "Inverting the pattern match" |
|||
grep -v "Jordan" $LLO_DATAFILE | head 5 |
|||
|
|||
echo "Matching the lines that start with a string" |
|||
grep -n "^Mi" $LLO_DATAFILE | tail -5 |
|||
|
|||
echo "Matching the lines that end with a string" |
|||
grep -n "15$" $LLO_DATAFILE | tail -5 |
|||
|
|||
echo "Checking for the whole words in a file" |
|||
grep -w "Jordan" $LLO_DATAFILE | tail -5 |
|||
|
|||
echo "Displaying only the matched pattern" |
|||
grep -o "Jordan" $LLO_DATAFILE | tail -5 |
|||
|
@ -1 +1,2 @@ |
|||
grep -Hns "Jordan" $LLO_DATAFILE | grep -o Ed | head -15 |
|||
|
|||
grep "Jordan" $LLO_DATAFILE | grep -v Edd | grep Michae | grep 199[0,1,2] |
|||
|
@ -1,9 +1,2 @@ |
|||
|
|||
Try to run |
|||
|
|||
[source,sh] |
|||
---- |
|||
grep -Hns "jordan" $LLO_DATAFILE | grep -v Eddie |
|||
---- |
|||
|
|||
and see the Results! |
|||
Try to find Michael Jordan statistics for 1991,2,3 |
|||
|
Loading…
Reference in new issue