What does the -i option do when used with the grep command?

The -i option in the grep command is used to perform a case-insensitive search. This means that grep will match lines regardless of whether the characters are uppercase or lowercase.

For example, the command:

grep -i "pattern" filename

will match "pattern", "Pattern", "PATTERN", and any other variation in case.

0 Comments

no data
Be the first to share your comment!