Read line by line in bash script

前端 未结 7 1898
暗喜
暗喜 2020-12-12 13:45

I want to do the following, read line by line of a file and use the value per line as params

FILE=\"cat test\"
echo \"$FILE\" | \\
while read CMD; do
echo $C         


        
相关标签:
7条回答
  • 2020-12-12 14:34
    while read CMD; do
        echo $CMD
    done  << EOF
    data line 1
    data line 2
    ..
    EOF
    
    0 讨论(0)
提交回复
热议问题