Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google site




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 08-10-2006
dsravan dsravan is offline
Registered User
 

Join Date: Jul 2006
Posts: 203
Debug output:

Quote:
archive2.ksh AUD61_TLG DLY
+ export FILENAME=AUD61_TLG
+ export FILETYPE=DLY
+ arch=/biddf/ab6498/dev/ctl/arch
+ export arch
+ export STG_LOG_DIR=/edwstage/Logs
+ export targetarchive=/edwstage/Archive
+ [ DLY = DLY ]
+ export RUNDTFILE=audt_run_dt_dly.txt
+ cut -f2 -d:
+ grep OLD_DT /edwstage/Logs/audt_run_dt_dly.txt
+ export OLD_DT=20060601
+ cut -f2 -d:
+ grep NEW_DT /edwstage/Logs/audt_run_dt_dly.txt
+ export NEW_DT=20060701
+ cd /biddf/ab6498/dev/ctl
+ sourcefilepattern=AUD61_TLG_DLY_???_20060601.dat
+ targetfilepattern=AUD61_TLG_DLY_MKT_20060701.dat.new
+ [[ AUD61_TLG = AUD61_TLG_DLY_???_20060601.dat ]]
+ [[ AUD61_TLG = AUD61_TLG_DLY_MKT_20060701.dat.new ]]
+ [[ DLY = AUD61_TLG_DLY_???_20060601.dat ]]
+ [[ DLY = AUD61_TLG_DLY_MKT_20060701.dat.new ]]
+ targetfilepattern=AUD61_TLG_DLY_MKT_20060701.dat.new
+ mv AUD61_TLG_DLY_MKT_20060701.dat.new /edwstage/Archive
mv: AUD61_TLG_DLY_MKT_20060701.dat.new: cannot access: No such file or directory
+ cd /edwstage/Archive
+ compress /edwstage/Archive