.sh for loop
Aiza
aiza21 at comclark.com
Mon Jun 21 23:20:02 UTC 2010
Samuel Martín Moro wrote:
> for name in "${path}/${group}"*
> do
> path=/dev
> group=ttypqfr
> for name in "${path}/${group}"*
> do
> test "$name" = "${path}/${group}*" && continue
> [ -z "${found_list}" ] && found_list="${name}" ||
> found_list="${found_list} ${name}"
> done
> echo "found list: $found_list"
>
Thank You Samuel.
Using the 'test' command solved my problem.
I had not known about the 'test' command.
You have taught me something new.
More information about the freebsd-questions
mailing list