Hello,
I have another question regarding how I could check each of the arguments passed to a script to determine if they are a regular file. As you can probably guess I don't have much experience working with Unix shell scripts. As of now I'm thinking I should do something like
The details on how to check each argument to see if they satisfy the criteria is where where I'm lost.
Any help is appreciated.
I have another question regarding how I could check each of the arguments passed to a script to determine if they are a regular file. As you can probably guess I don't have much experience working with Unix shell scripts. As of now I'm thinking I should do something like
Code:
for ARGUMENT in $* ; do
//somehow check to see if $ARGUMENT is a regular file
//(i.e. a text or executable file
echo $ARGUMENT
done
The details on how to check each argument to see if they satisfy the criteria is where where I'm lost.
Any help is appreciated.