Hi all,
I’m very new to scripting. Hope someone can help me with the problem that I’m having.
I’ve a list of files called flist.txt containing name of files
e.g. 11111
22222
33333
44444
55555
and a lot more…
and I have different directories that matches these files.
e.g. /mnt/db/0a/11111_qk
/mnt/db/0b/11111_qa
/mnt/db/0c/11111_qq
/mnt/db/0d/22222_qa
/mnt/db/0e/22222_qb
/mnt/db/0z/44444_qp
/mnt/db/0t/55555_qu
/mnt/db/0t/55555_qr
What I need to do is to find the directories where the file matches the flist.txt and remove the directories.
I have no idea how to go about doing this. Can anyone help?