Trying to create a script to read a remote file and check the md5 checksum and alert if a mismatch yet getting an error I can\'t understand.
#!/bin/sh REMOTE
[ isn't bash syntax, it is a command. So you must have a space between it and its first argument $LOCALMD5. There also needs to be a space between $REMOTEMD5 and ].
[
$LOCALMD5
$REMOTEMD5
]