0
我有一些簡單的shell腳本Ubuntu的shell腳本問題
#!/bin/bash
echo $(date)
NOW=$(date +%Y-%m-%d-%H-%M-%S)
NAME = "db.$NOW.sql"
echo $NAME
LOCALPATH = "/data/mysql/$NAME"
echo $LOCALPATH
/usr/bin/mysqldump -u username -ppassword --databases dbname > $LOCALPATH
錯誤消息:
line 5: NAME: command not found
line 7: LOCALPATH: command not found
東西我缺少什麼?
很酷:),謝謝! – icn 2012-03-01 20:18:54