Regarding Unix shell script
        Posted  
        
            by arav
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by arav
        
        
        
        Published on 2010-03-30T01:28:05Z
        Indexed on 
            2010/03/30
            1:33 UTC
        
        
        Read the original article
        Hit count: 486
        
I want to retrieve the file from the INFILE directory which are begining with the file names prefix "BBSCGG_" or "BCT_" or "ACL_" or "ASC" and do the processing inside the for loop
INFILE=/ext/test/fil1/
for infile name in file prefix
...  if [[ -f ${fspec} ]] ; then
            processing logic
     else
            processing logic
done  
how can i do it
© Stack Overflow or respective owner