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). +