Iterate over lines instead of words in a for loop of shell script

前端 未结 3 1767
感情败类
感情败类 2020-12-24 05:29

Following is the shell script to read all the DSF present in the box. But since the line is having spaces, it is displaying them in different lines. For those of you who don

3条回答
  •  庸人自扰
    2020-12-24 06:09

    you need to use this basically IFS=$'\n' and grep -x instead of grep as it will work like a equal to operator instead of like operator.

提交回复
热议问题