So, you have a text file like so: file1 file2 .. And you want to run a command on each line of the file (say, chmod 644). Like all things…