awk remote ssh command
问题 I have a bash script that run a remote awk command but I guess I haven't correctly escape specials characters since no file is generated on the remote server. Still I have no error. My variables are declared locally and can be used remotely without issue (other part of the script confirm this). ssh -q -t server ' logfiles=$(find /var/log/httpd/ -type f -name *access_log -cmin -'"$past"') for log in $logfiles; awk -vDate=\`date -d'now-'"$past"' minutes' +[%d/%b/%Y:%H:%M:%S\` ' { if \(\$4 >