bug-sh-utils
[Top][All Lists]
Advanced

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

Re: Bug?


From: Bob Proulx
Subject: Re: Bug?
Date: Fri, 2 Feb 2001 15:16:35 -0700

> Or perhaps you just want to know if any .in files exist at all in
> which case you could perhaps do something like this.
> 
>   if [ -n "`echo *.in`" ]; then
>     : do something
>   fi

I should test my snippets.  This obviously won't work.  You would
really need something like the following.  I am sure more elegant
solutions exist.  But I am going to quit even if this is not the best
solution.

  if ls *.in 2>/dev/null; then
    : do something
  fi

Bob



reply via email to

[Prev in Thread] Current Thread [Next in Thread]