In bash, the usual way to check if file exists is [ -f xxxx ] or [ -e xxxx ].
I see a script doing this if [ -a xxxx ], and I verified that this works to check the existence of a file. How is "logical and" operation being used to do this?
            Asked
            
        
        
            Active
            
        
            Viewed 73 times
        
    1
            
            
         
    
    
        gniourf_gniourf
        
- 44,650
- 9
- 93
- 104
 
    
    
        Prem Mangal
        
- 11
- 1
- 
                    1As seen in the duplicated, it is deprecated, hence you don't see it in `man test`. However, if you do `help test` you will see "-a FILE True if file exists.". – fedorqui Feb 10 '15 at 11:14