On Thu, 5 May 2011, Michael Rasmussen wrote:

> The ls stands in for the -e test:
>
> FILE_THERE=`ls m* 2>/dev/null | head -1`
> if [  $FILE_THERE ];
> then
>    echo found $FILE_THERE
> fi

if test $(/bin/ls m* 2>/dev/null | wc -l) -gt 0; then
   echo "found it..."
fi

-- 
Paul Heinlein <> heinl...@madboa.com <> http://www.madboa.com/
_______________________________________________
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to