I have a command like
grep "good work" myfile.results | wc -l
in my bash shell script.
I normally output this to a file, but I would prefer to be able to put this into a variable I can keep (and then modify).
Any idea how to do this?
hello=grep "good work" myfile.results | wc -l
but that didn't work :(