sed 和read line用法
sed -i "s/`echo -e \\\t`/,/g"123456.txtcat ./123456.txt| while read line
do
sd=`echo $line |awk -F, '{print(($4-$3))}' `
a=`echo $line |awk -F, '{print$1}' `
DAYLEN2=$(($(($sd))/86400))
echo $a "开通" $DAYLEN2 "天"
done
while read line
do
done<file
页:
[1]