Question : Shell script to delete files from a list

Hello Experts!

I have a flat text file that contains the listings of file extension that I want to delete, it looks similar to this:

mp3
wma
mpg
etc.

I would like to write a bash script that will delete the files that matches the file extensions listed in the flat text file.

Thanks!

Answer : Shell script to delete files from a list

Given that your solution is directly based on my suggestion, I don't see why the question should be deleted.
Random Solutions  
 
programming4us programming4us