Pipe grep to bash script or CLI

Posted by in Linux

grep -Rl "look for this string" /path/ | xargs -I '{}' ./script '{}'
grep -Rl "look for this string" /path/ | xargs -I '{}' ls -l '{}'