shell scripts?

This is a discussion on shell scripts? within the Linux Programming forums, part of the Platform Specific Boards category; Hi ? i have a simple shell script program in Bourne Shell..
and would like someone to help me out ...

Re: shell scripts?

Originally posted by Unregistered How many command line arguments are expected and what do they each represent?

Two (a path and a group name). The script is looking for any files owned by a certain group ($2), and begins its search in the directory specified by $1. If a matching file is found, it greps the file to see if it contains the value of $oughttobe. It is not clear from this script what the value of $oughttobe ought to be (okay, bad pun).

If grep indicates the file contains whatever $oughttobe is, the name of the owner is appended to the file referred to as $names.

Originally posted by Unregistered The script makes use of some other variables, eg, names, owners etc..:what would make these variables available to it..

I'm going to guess that this script is meant to be called from another script, and that the variables are exported from the calling script.