摘要: #!/bin/bash mysql -h -P -u -p -D >/Users/admin/Downloads/abc.txt <<EOF select count(*) from table_name EOF 阅读全文