[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] bash scripting question



if perl -e 'exit(grep(-e,glob(shift))?0:1)' '*.foo' ; then   
  echo "*.foo exists"
else
  echo "no *.foo"
fi

-- 
Fletch                | "If you find my answers frightening,       __`'/|
fletch at phydeaux.org   |  Vincent, you should cease askin'          \ o.O'
770 294-0820 (m)      |  scary questions." -- Jules                =(___)=
                      |                                               U