Reputation: 19
I am trying this command:
if [ -f "${FOO}"]; then \
sleep 5; \
fi
But I see an error like this: /bin/sh: line 0: [: missing `]'
Can someone explain this to me.
Thanks in advance.
Upvotes: 0
Views: 916
Reputation: 19
Looks like I was missing a space: OLD: if [ -f "${FOO}"]; then \ NEW: if [ -f "${FOO}" ]; then \
Upvotes: 1