sandeepmur
Programmer
Hi,
I am using the command :
if [ test ! -s "$FILEPATH"tempTSSwap ] in a script to check if a file exists and am getting the fwg error message:
scripts>SGcheckSwap.sh
SGcheckSwap.sh[37]: !: A test command parameter is not valid.
SGcheckSwap.sh43]: /software/mon/scripts/tempTSSwap: Cannot find or open the file.
any suggestions as to whats wrong here ? I thought the "-s" flag was correct..
thnx
I am using the command :
if [ test ! -s "$FILEPATH"tempTSSwap ] in a script to check if a file exists and am getting the fwg error message:
scripts>SGcheckSwap.sh
SGcheckSwap.sh[37]: !: A test command parameter is not valid.
SGcheckSwap.sh43]: /software/mon/scripts/tempTSSwap: Cannot find or open the file.
any suggestions as to whats wrong here ? I thought the "-s" flag was correct..
thnx