Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

test for existence 1

Status
Not open for further replies.

kHz

MIS
Dec 6, 2004
1,359
US
Which is correct?

if [[ -f file1 && file2 ]]

OR

if [[ -f file1 && -f file2 ]]


Thanks!
 
latter

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
That's what I was using but just wanted to verify.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top