Problem
1. Frame regular expressions to locate lines longer than 100 and smaller than 150 characters using
(i) grep,
(ii) sed.
2. Find out the occurrences of three consecutive and identical word characters (like aaa or bbb) using
(i) grep,
(ii) sed.
3. The command grep -c ENCRYPTION foo outputs the number of lines containing ENCRYPTION, but if the pattern sometimes occurs more than once in a line, how do you then obtain a count of all these occurrences?