LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need help with grouping script (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-with-grouping-script-638813/)

Dan_86 04-30-2008 01:32 AM

Need help with grouping script
 
Hey i was just learnin some scriptin with Red Hat 4. I was really curious to know if any one knew a script. That when i run it i type a groups name and all of the groups files are shown.

Any help with this would be much appreciated thanks.

Disillusionist 04-30-2008 02:16 AM

You could use the -group option in find.

Code:

echo "Please enter a group name: "
read group_name
find / -group $group_name

But, you would need to have permissions to see all files to ensure that it is giving a complete picture.


All times are GMT -5. The time now is 11:00 AM.