If your reason for using fgrep is that grep -F is more characters longer, the logical thing would be to have your own function or alias which is called just f or fg.
I stopped using egrep and fgrep in scripts ~25 years ago when I found out they weren't in the standard.
grep -F is only useful when the pattern contains regex characters that should be treated literally, and since the default regex language of grep is BRE, those characters are few.
If only one special character occurs you break even on character count if you use a backslash escape:
I stopped using egrep and fgrep in scripts ~25 years ago when I found out they weren't in the standard.
grep -F is only useful when the pattern contains regex characters that should be treated literally, and since the default regex language of grep is BRE, those characters are few.
If only one special character occurs you break even on character count if you use a backslash escape: