View Single Post
Old Apr 19th, 2005, 4:16 PM   #7
spydoor
Programmer
 
Join Date: Feb 2005
Posts: 64
Rep Power: 4 spydoor is on a distinguished road
Here's a nasty solution.... There must be much better ways

count the number of files that match *.core... ignore 'No match'...
(to be correct you would also have to ignore other find error msgs like Permission denied.....)

if(`find $HOME/*.core |& grep -v 'No match' | wc -l`) then
    echo found some
  else
    echo didn\'t find any
endif
spydoor is offline   Reply With Quote