return to PRS Technologies website


dupe_cost1.sh
#!/usr/bin/ksh ############################################################################### # # Module: dupe_cost1.sh # Author: Peter R. Schmidt # Description: Locate and separate out duplicate costs in Elite # # Note: This is not 100% reliable. If the exact same cost actually was # was incurred for the same amount and same matter and same day, it # looks just like a duplicate. # # Change Log # # Date Name Description................. # 05/31/01 Peter R. Schmidt Start Program # ############################################################################### echo echo "Locate and seperate out duplicate costs" echo echo "Costs which do not seem to be duplicated are placed in a 'save' file" echo "which is in L2 cost load format and named 'save_[batch num].txt" echo echo "Enter period" read PERIOD echo echo "Enter beginning batch number to analyze" read BATCH1 echo echo "Enter ending batch number to analyze" read BATCH2 echo echo "Enter operator to analyze" read OPER dupe_cost1.4ge $PERIOD $BATCH1 $BATCH2 $OPER echo echo "Completed" echo "report in dupe_cost1.out" echo if [ -f save_*.txt ]; then echo "Saved costs are located in the following files:" ls -c save_*.txt else echo "Note: No saved cost files were created." fi echo echo "Press <Enter> to continue" read pause