Dear All, I am a new bie in perl scripting language. I have this problem : I have around 500 students directories created on a server where they (students) have their own program files etc. Now the priblem is to delete all these files of those students whose roll no. starts with s08-1-**-* where the ** means a number between 1 and 5 (inclusive ) specifying the branch they study in the * means the a number between 0 and 100 or more or can be done this way too considering the rollno as s08-1-1-** where ** stands for the students regsitration number/roll number. In that case the script will have to be changed for each branch, by changing the number 1, 2, 3,,4 0r 5. Ultimately we have to delete all the files stored in these folders without deleting their home directories. Can any one give a nice script/ solution to do this.
Thanks in advance, jm