Re: Checking for lock files.
From: Stachu 'Dozzie' K. (dozzie_at_dynamit.im.pwr.wroc.pl.nospam)
Date: Tue, 28 Jun 2005 19:15:03 +0000 (UTC)
On 28.06.2005, Noah <Roger.Noah@YellowCorp.com> wrote:
> Hello all,
> Just curious how the group would handle checking for a lock file like
> nnnnnn.LCK where n is random.
> if [[ ! -f *.LCK ]] doesn't seem to work
> Would you use find, or does someone have a slicker method ?
If you're sure there is just one .LCK file, then you can use
`if [ ! -f *.LCK ]' construct. Note single brackets.
-- Feel free to correct my English Stanislaw Klekot