In this lesson, we’ll use
grep to find text patterns. We’ll also go over some of the flags that
grep has that can be combined together to make it more powerful and easier to read.
This lessons seems to break at the beginning of the video.
I am trying to grep a variable which is the output of a find command. I'm getting permission denied from the grep, but if I pass the same file directly it works. How could I solve that?
var=`find . -path ./node_modules -prune -o -path ./public -prune -o -type f -name "*.scss" -print` grep "string" `$var`