Linux Basic and Administration Commands

Searches case-sensitively, by default. 4. Searches for the text anywhere on the line. 1. grep 'linux' grep1.txt. 2. grep -i 'linux' grep1.txt - case-insensitive search. 3. grep '^linux' grep1.txt - uses '^' anchor to anchor searches at the beginning of lines ... 5. grep -i 'linux$' grep1.txt - uses '$' anchor to anchor searches at the end of ... ................
................