Trancemission
Technical User
I have a simple script which searches a file for a Customer name, then exports the corrosponding number on that line. The problem I am faced with is that some customers may not be in the file. In that case I want to export a default number.
Extract of Script:
grep $compname $TMPPATH/customers | awk '{print $2}' > $TMPPATH/number
>$compname is the company name
Contents of customers:
CUST1 45
CUST2 46
CUST8 145
etc.....
Many Thanks
Extract of Script:
grep $compname $TMPPATH/customers | awk '{print $2}' > $TMPPATH/number
>$compname is the company name
Contents of customers:
CUST1 45
CUST2 46
CUST8 145
etc.....
Many Thanks