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"

Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
 (+033) 1 41 38 37 60
 1 Allée de la Venelle
 92150 Suresnes
 FRANCE

"Nobody wants to say how this works.
 Maybe nobody knows ..."
                     Xorg.conf(5)


On Mon, Jun 21, 2010 at 3:21 PM, Aiza <aiz...@comclark.com> wrote:

> path=/dev
>> group=tty
>> for name in "${path}/${group}"*
>> do
>>    [ -z "${found_list}" ] && found_list="${name}" ||
>> found_list="${found_list} ${name}"
>> done
>> echo "found list: $found_list"
>
>
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to