How use echo with grep in a Unix shell script?

后端 未结 3 597
野趣味
野趣味 2021-01-19 02:24

I need to use echo with grep in a shell script. Can I use it?

I tried this, but is incorrect:

echo Linux: grep \"Linux\" ~/workspace/ep-exercicios/m1         


        
3条回答
  •  感情败类
    2021-01-19 02:59

    Simply you can achieve it by doing slight modification below.

    echo "Linux: `grep "Linux" ~/workspace/ep-exercicios/m1/e2/intro-linux.html | wc -w`"

提交回复
热议问题