Saludos.
Using bash Syntax Highlighting
#!/usr/bin/ksh
. $HOME/.profile
export COLECTORHOME=/export/home/colljvip/LatJitterLan_thread
export AYER=`date '+%y:%m:%d' | awk -F":" '{printf"20%2d%2d%2d\n",$1,$2,($3-1)}' | sed 's/ /0/g'`;
export AYER=$1
export prefix=pruebas_latencia
cd ${COLECTORHOME}/historico/data
echo ${AYER}0
gzip ${prefix}${AYER}0*
tar -cvf Tar_${AYER}0.tar ${prefix}${AYER}0*
rm ${prefix}${AYER}0*
echo ${AYER}1
gzip ${prefix}${AYER}1*
tar -cvf Tar_${AYER}1.tar ${prefix}${AYER}1*
rm ${prefix}${AYER}1*
echo ${AYER}2
gzip ${prefix}${AYER}2*
tar -cvf Tar_${AYER}2.tar ${prefix}${AYER}2*
rm ${prefix}${AYER}2*
gzip *.tar
cd ${COLECTORHOME}/historico/sql
echo ${AYER}0
gzip ${prefix}${AYER}0*
tar -cvf Tar_${AYER}0.tar ${prefix}${AYER}0*
rm ${prefix}${AYER}0*
echo ${AYER}1
gzip ${prefix}${AYER}1*
tar -cvf Tar_${AYER}1.tar ${prefix}${AYER}1*
rm ${prefix}${AYER}1*
echo ${AYER}2
gzip ${prefix}${AYER}2*
tar -cvf Tar_${AYER}2.tar ${prefix}${AYER}2*
rm ${prefix}${AYER}2*
gzip *.tar
echo termino
. $HOME/.profile
export COLECTORHOME=/export/home/colljvip/LatJitterLan_thread
export AYER=`date '+%y:%m:%d' | awk -F":" '{printf"20%2d%2d%2d\n",$1,$2,($3-1)}' | sed 's/ /0/g'`;
export AYER=$1
export prefix=pruebas_latencia
cd ${COLECTORHOME}/historico/data
echo ${AYER}0
gzip ${prefix}${AYER}0*
tar -cvf Tar_${AYER}0.tar ${prefix}${AYER}0*
rm ${prefix}${AYER}0*
echo ${AYER}1
gzip ${prefix}${AYER}1*
tar -cvf Tar_${AYER}1.tar ${prefix}${AYER}1*
rm ${prefix}${AYER}1*
echo ${AYER}2
gzip ${prefix}${AYER}2*
tar -cvf Tar_${AYER}2.tar ${prefix}${AYER}2*
rm ${prefix}${AYER}2*
gzip *.tar
cd ${COLECTORHOME}/historico/sql
echo ${AYER}0
gzip ${prefix}${AYER}0*
tar -cvf Tar_${AYER}0.tar ${prefix}${AYER}0*
rm ${prefix}${AYER}0*
echo ${AYER}1
gzip ${prefix}${AYER}1*
tar -cvf Tar_${AYER}1.tar ${prefix}${AYER}1*
rm ${prefix}${AYER}1*
echo ${AYER}2
gzip ${prefix}${AYER}2*
tar -cvf Tar_${AYER}2.tar ${prefix}${AYER}2*
rm ${prefix}${AYER}2*
gzip *.tar
echo termino
Coloreado en 0.006 segundos, usando GeSHi 1.0.8.4