Sample Header Ad - 728x90

grepping for word starting with hyphen gives error: invalid option -- 't'

14 votes
2 answers
8895 views
When I grep the man page of the find command for matches to type it returns a lot of search results that I don't want. Instead I want to use a command that returns *only* the search results for -type. The command man find | grep -type doesn't work. It returns: grep: invalid option -- 't'
Asked by karel (2038 rep)
Nov 17, 2016, 11:13 PM
Last activity: Jul 5, 2024, 08:34 AM