Results 1 to 2 of 2
I'm getting a syntax error with this and was hoping for some help please:
Code:
if [[ -e $4 ] && [ "$overwrite_flag" != 0 ]] || [ -!e $4 ...
- 04-09-2008 #1Just Joined!
- Join Date
- May 2007
- Posts
- 24
Syntax Error - scripting - if conditions
I'm getting a syntax error with this and was hoping for some help please:
I'm trying to say:Code:if [[ -e $4 ] && [ "$overwrite_flag" != 0 ]] || [ -!e $4 ]
(If file ($4) exists AND the overwrite flag is set) OR (If the $4 file does NOT exist) THEN ....
Can someone please tell me what i'm doing wrong?
- 04-09-2008 #2


Reply With Quote