Problem with awk,not able print the file that is greater than 3000 bytes.

My Script:
#!/bin/sh

date=`date +%y%m%d -d"1 day ago"`
in_dir=/vis/logfiles/to_solmis
cp `grep -il ST~856~ $inbound_dir/*$date*` /vis/sumit/in_ASN/

        for i in /vis/sumit/in_ASN/*
        do
        mkdir -p /vis/sumit/inboundasns.$date
        cp \`echo $i\` /vis/sumit/inboundasns.$date 
             tr -c '[A-Z] [0-9] [a-z] ~' '[ *]' <$i > b
             awk -F "DTM~" '\{print $1\}' b > c
             awk -F "~SH~" '\{print $2\}' c > d
             awk -F "~" '\{print $1","$2","$3","$4","$11\}' d >> a.csv
        done

----------------------------------------------------------
awk command is not able to print a file which is of 3000 bytes.
can any one advise...

Bumping up posts or double posting is not permitted in these forums.

Please read the rules, which you agreed to when you registered, if you have not already done so.

Thank You.

The UNIX and Linux Forums.

Continue here:

http://www.unix.com/unix-dummies-questions-answers/143523-problem-awk-command-script.html\#post302450201