diff --git a/grep/3_Regular_Expressions_Examples/code b/grep/3_Regular_Expressions_Examples/code index 0759675..2135647 100644 --- a/grep/3_Regular_Expressions_Examples/code +++ b/grep/3_Regular_Expressions_Examples/code @@ -1,10 +1,10 @@ -grep '[Jj][oO][rR][dD][aA][nN]' $LLO_DATAFILE +grep '[Jj][oO][rR][dD][aA][nN]' $LLO_DATAFILE | tail -2 -grep '\' $LLO_DATAFILE +grep '\' $LLO_DATAFILE | head -1 -grep -E 'Michael Jordan|Eddie Jordan' $LLO_DATAFILE +grep -E 'Michael Jordan|Eddie Jordan' $LLO_DATAFILE | head -2 -grep '199[0-9]' $LLO_DATAFILE | grep -E "Kukoc|Jordan" +grep '199[0-9]' $LLO_DATAFILE | grep -E "Kukoc|Jordan" | tail -3