File.txt has numerous lines with paths to different files
I want each line of File.txt to become an argument to sed command
Ex : File.txt has following lines
dir1/sub1/a.txt
dir2/sub2/b.txt
dir3/sub3/c.txt
Need to use sed
command on all these files in File.txt by splitting File.txt into lines and using
foreach
command
How can I do that in
Linux
terminal? Please let me know if there are any other methods as well