I have a folder (call "folder"), composed of different subfolders ("subfolder1", "subfolder2",...). I would like to remove a list of files in all the subfolder of "folder", while some files are present in all the subfolders!
I currently use :
while read file; do rm "$file"basz.dat; done < ~/folder/subfolder1/list.txt
Unfortunately this do the job just for the current folder. How can I apply the same command to all the subfolders?