Hello out there, I want to pull out the patterns which I feed grep out of file. The file has the form name=value and I want read out the values one by one in order to give it to grep. The name of the file is executables and it's in my homedir.
My attempt was
but the result was, that grep couldn't find any of the patterns within the file. But if I try this manually there are some matches. Most probably grep receives all the matches at one time.
Does anybody know, what my fault is?
Thank you in advance
BR Fleance
My attempt was
Bash:
while read line; do grep -nr $(awk 'BEGIN {FS="="}; {print $2}'); done < ~/executables
Does anybody know, what my fault is?
Thank you in advance
BR Fleance