zeus
4 years ago
6 changed files with 24712 additions and 0 deletions
@ -0,0 +1,3 @@ |
|||
grep -c "Jordan" $LLO_DATAFILE |
|||
echo " Prefix each line of output with the 1-based line number within its input file." |
|||
grep -n "Jordan" $LLO_DATAFILE |
@ -0,0 +1 @@ |
|||
grep -Hns "Jordan" $LLO_DATAFILE |
@ -0,0 +1 @@ |
|||
grep -Hns "Jordan" $LLO_DATAFILE | head -1 |
File diff suppressed because it is too large
@ -0,0 +1,6 @@ |
|||
- Displaying the count of number of matches |
|||
|
|||
We can find the number of lines that matches the given string/pattern AND |
|||
|
|||
- Prefix each line of output with the 1-based line number within its input file. |
|||
|
@ -0,0 +1,9 @@ |
|||
|
|||
Try to run |
|||
|
|||
[source,sh] |
|||
---- |
|||
grep -Hns "jordan" $LLO_DATAFILE |
|||
---- |
|||
|
|||
and see the Results! |
Loading…
Reference in new issue