READLOCATION=/app/trans/log/
HOSTADDRESS=/neouser/realText.txt

#`sort -d neouserTransfer_report.txt`

NEOUSERCOUNT=0
READDATE=""
while read line2
do
    READJOB2=`echo $line2 | awk '{print $1,$2,$3}'`
    if [ "$READDATE" == "$READJOB2" ]
    then
        let "NEOUSERCOUNT=NEOUSERCOUNT+1"
    else
        echo "$READDATE : $NEOUSERCOUNT" >> neouserTransfer_reportEnd.txt
        READDATE="$READJOB2"
        let "NEOUSERCOUNT=1"
    fi
done < ss_neouserTransfer_report.txt



산술연산을 하는 쉘이다.
let을 주목해서 봐줄 필요가 있다.

글 보관함

카운터

Total : / Today : / Yesterday :
get rsstistory!