【发布时间】:2020-09-04 05:53:52
【问题描述】:
我正在运行脚本
#!/bin/bash -xv
billseqno=`sqlplus -s /@prod <<EOF
set heading off
set serveroutput off
select max(billseqno) from bc_run where control_group_ind is null;
EOF`
echo "$billseqno"
shark=`rsync --stats --dry-run -ax bill@shark:/home/$billseqno/ /home/temp/ | grep -i "number of files transferred" | cut -c30-`
其中$billseqno 表示文件夹名称,它是一个数字。
我的问题是$billseqno 的值没有传递给rsync 路径。
有什么建议吗?
谢谢
【问题讨论】:
标签: linux bash unix arguments rsync