In a message dated: Wed, 24 Jan 2001 10:02:39 EST
"Thomas M. Albright" said:
>On Wed, 24 Jan 2001, Tilly, Lawrence wrote:
>
>> Try this:
>>
>> #!/usr/bin/ksh
>> for DIRECTORY in "$@"; do
>> echo $DIRECTORY
>> ls $DIRECTORY
>> done
>>
>Do I need to use ksh? I really don't know much (read: anything) about
>that shell. Would the same for loop work in bash?
Should. Bash is a super-set of ksh, sh, and csh (theoretically combining all
the best of each, and leaving behind the worst).
Also, fwiw, using the -x option to (ba)sh will allow you some amount of
debugging ability. You can turn it on either by:
#!/path/to/(ba)sh -x
or
# sh -x /path/to/script
HTH!
--
Seeya,
Paul
----
It may look like I'm just sitting here doing nothing,
but I'm really actively waiting for all my problems to go away.
If you're not having fun, you're not doing it right!
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************