Using grep to find all strings (with %) in files recursively
To find all occurrences of printf in all files recursively: grep -rnw ~/bin/ -e "printf" However, how to escape the search pattern printf ‘%0? I failed in the following trials to escape the percentage sign: grep -rnw ~/bin/ -e "printf ‘%0" grep -rnw ~/bin/ -e "printf \’\%0" grep -rnw ~/bin/ -e "printf \’%%0" Sample file:… Read More Using grep to find all strings (with %) in files recursively