Urgent...Need a shell script to list files which belong to particular groups

Hi,
I am just new to scripting but got to write a complex scipt please help. i need a shell script which can check the list of data listed in a txt doc and see if they belong to any of the groups that are listed in other list file....

What do these files look like?

they may be anything...text file, sas datasets, csv files etc... actually my aim is to write a script which checks if files listed in the text file are available and then check if they belong to any of the groups mentioned in a list file and then say authorised if belong to any one group and say unauthorised if it doesnt belong to any group

Please give us samples of input files and show us the output you want to get when given those input files. Please use code tags to demarcate the input and output files.

Don,
Actually i do not have input or output files i can provide. But i can explain you what i need. i just need a script which when run should take the text doc(contains list of files which are to be copied) as input and then each file has to be checked to see if they belong to any of the 5 groupnames that we are going to mention in the other list document, id they belong to any of the group, then they should be copied to destinated location, If not we just have to ignore those files.

---------- Post updated at 10:05 AM ---------- Previous update was at 10:04 AM ----------

Don,
Actually i do not have input or output files i can provide. But i can explain you what i need. i just need a script which when run should take the text doc(contains list of files which are to be copied) as input and then each file has to be checked to see if they belong to any of the 5 groupnames that we are going to mention in the other list document, id they belong to any of the group, then they should be copied to destinated location, If not we just have to ignore those files.

Everyone at the UNIX and Linux Forums gives their best effort to reply to all questions in a timely manner. For this reason, posting questions with subjects like "Urgent!" or "Emergency" and demanding a fast reply are not permitted in the regular forums.

For members who want a higher visibility to their questions, we suggest you post in the Emergency UNIX and Linux Support Forum. This forum is given a higher priority than our regular forums.

Posting a new question in the Emergency UNIX and Linux Support Forum requires forum Bits. We monitor this forum to help people with emergencies, but we do not not guarantee response time or best answers. However, we will treat your post with a higher priority and give our best efforts to help you.

If you have posted a question in the regular forum with a subject "Urgent" "Emergency" or similar idea, we will, more-than-likely, close your thread and post this reply, redirecting you to the proper forum.

Of course, you can always post a descriptive subject text, remove words like "Urgent" etc. (from your subject and post) and post in the regular forums at any time.

Thank you.

The UNIX and Linux Forums