From 208c0c4cedc18b5b23b20e6324c25af6d5466b0d Mon Sep 17 00:00:00 2001 From: zeus Date: Fri, 25 Sep 2020 00:17:27 +0300 Subject: [PATCH] grep 8 --- grep/3_Regular_Expressions_Examples/code | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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