bash testing a group of directories for existence
        Posted  
        
            by Jim Jones
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Jim Jones
        
        
        
        Published on 2010-05-28T19:30:33Z
        Indexed on 
            2010/05/28
            20:02 UTC
        
        
        Read the original article
        Hit count: 279
        
bash
Have documents stored in a file system which includes "daily" directories, e.g. 20050610. In a bash script I want to list the files in a months worth of these directories. So I'm running a find command find <path>/200506* -type f >> jun2005.lst. Would like to check that this set of directories is not a null set before executing the find command.  However, if I use if[ -d 200506* ] I get a "too many arguements error.  How can I get around this? 
© Stack Overflow or respective owner