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

前端 未结 7 1192
青春惊慌失措
青春惊慌失措 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:24

    You can do this without a temporary file using process substitution:

    while read F
    do
      ...
    done < <(find . -type f -mtime +15)
    

提交回复
热议问题