Как назначить результат
grep -c "некоторый текст" /tmp/somePath
в переменную, чтобы я мог ее повторить.
Спасибо!
#!/bin/bash
some_var = grep -c "some text" /tmp/somePath
echo "var value is: ${some_var}"
Я также пробовал: some_var = 'grep -c\ "некоторый текст \" /tmp/somePath '
Но я продолжаю получать: команда не найдена
Спасибо