How to assign the result of
grep -c \"some text\" /tmp/somePath
into variable so I can echo it.
#!/bin/bash some_var = grep -c
Found the issue Its the assignment, this will work:
some_var=$(command)
While this won't work:
some_var = $(command)
Thank you for your help! I will accept first helpful answer.