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

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

    You could use the -exec parameter of find and use the file names directly:

    find . -type f -mtime +15 -exec  {} \;
    

    The {} is a placeholder for the file name.

提交回复
热议问题