#!/usr/bin/bash
date_today=`date +"%Y%m%d"`
file_dir="/home/reports/archive"
v_outdir="/home/report/work"
v_file=$(${file_dir}/abc.*.xyz)
wc -l ${v_file}|sed '1d' | awk -F" " '{print $2","$1}' >>
${v_outdir}/output.txt 2>&1
cat ${v_outdir}/output.txt
执行上述操作时出现以下错误,但我对该目录拥有完全权限
error : /home/reports/archive/abc.S60286.RE.xyz: Permission denied