【问题标题】:Use variable with string (with spaces) as value in grepUse variable with string (with spaces) as value in grep
【发布时间】:2022-12-02 01:34:26
【问题描述】:

My variable $pepe has the name of a file (with spaces) as value, and I want to use the grep command to find that file in ls -l. The problem is that I can literally write it but I cannot use it if its set inside $pepe.

In the image you can see what I tried.

【问题讨论】:

    标签: bash shell


    【解决方案1】:

    enter image description here

    Here you have the image, I don't know why it didn't appear.

    【讨论】:

      猜你喜欢
      • 2022-12-02
      • 2022-12-01
      • 2022-01-01
      • 2018-07-14
      • 2022-12-01
      • 2022-12-27
      • 2022-12-27
      相关资源
      最近更新 更多