I'm new to bash scripting and I'm trying to learn one of the scripts my company uses. I came across this line:
[ ! -f $PKGDIR/$COMMON_OPS_SCRIPT ] && exit $MISSING_COMMONOPS_SCRIPT
the next line is:
The first line confuses me because it looks like it should be part of an if statement but it isn't. The second line is the same thing in the brackets on the first line preceded by a period. Can someone please explain, in detail, what is happening here?
Also, I've been trying to learn bash scripting here:
Does anyone have a better tutorial I could check out?