From 98aece0e0348cab4f01471f2dc48c94b0671c691 Mon Sep 17 00:00:00 2001 From: zeus Date: Thu, 24 Sep 2020 18:58:10 +0300 Subject: [PATCH] grep 2 --- grep/0_Case_insensitive_search/code | 2 +- grep/0_Case_insensitive_search/info | 5 ++--- grep/intro | 7 ++++++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/grep/0_Case_insensitive_search/code b/grep/0_Case_insensitive_search/code index d561bd0..19e2a29 100644 --- a/grep/0_Case_insensitive_search/code +++ b/grep/0_Case_insensitive_search/code @@ -1 +1 @@ -grep -i "Jordan" $LLO_DATAFILE \ No newline at end of file +grep -i "Jordan" $LLO_DATAFILE diff --git a/grep/0_Case_insensitive_search/info b/grep/0_Case_insensitive_search/info index 21748bb..8f4dd71 100644 --- a/grep/0_Case_insensitive_search/info +++ b/grep/0_Case_insensitive_search/info @@ -1,5 +1,4 @@ -The *grep* filter searches a file for a particular _pattern_ of _characters_, and displays all lines that contain that pattern. - -The pattern that is searched in the file is referred to as the *__regular expression__* (grep stands for globally search for regular expression and print out). +The -i option enables to search for a string case insensitively in the give file. +It matches the words like “JORDAN”, “Jordan”, “jordan”. diff --git a/grep/intro b/grep/intro index 36afa37..2e6222b 100644 --- a/grep/intro +++ b/grep/intro @@ -1,2 +1,7 @@ How to use "grep" command on Unix/Linux operating systems. -Here you can find descriptions with simple examples of the "grep" command. \ No newline at end of file +Here you can find descriptions with simple examples of the "grep" command. + +The *grep* filter searches a file for a particular _pattern_ of _characters_, and displays all lines that contain that pattern. + +The pattern that is searched in the file is referred to as the *__regular expression__* (grep stands for globally search for regular expression and print out). +