Hi folks. Have som beginner-issues using grep here.
I'm up to search for the term "--prune-empty-dirs" in the man page of rsync. So I tried to ran this command:man rsync | grep '--prune' -A1 -B4'
Problem is I get error grep: unrecognized option '--prune'.How can I make grep to recognise the text pattern "--prune" as the pattern to search for?I can remove the two dashes, but that is not what I want to do.[edit while write post]Ok, I found the solution after I remembered to search the web for "grep escape character" (that is probably what I should had ask for) - so I got it to work with the same command, but backslashes in front of all dashes:man rsync | grep '\-\-prune' -A1 -B4