How can I read a list of filenames from a file in bash?

前端 未结 7 1187
青春惊慌失措
青春惊慌失措 2021-01-30 10:59

I\'m trying to write a bash script that will process a list of files whose names are stored one per line in an input file, something the likes of

find . -type f          


        
7条回答
  •  一生所求
    2021-01-30 11:43

    use while read

    echo $FILE | while read line
    do
    echo $line
    done
    

    You can do redirect instead of echo

提交回复
热议问题