bash - Incremental number in shell script on each loop -


#!/bin/bash  echo script: $0 echo "enter customer order ref (e.g. 100018)" read p_cust_order_ref echo "enter du id (e.g. 100018)" read p_du_id  p_order_id=${p_cust_order_ref}${p_du_id}   #loop through xml files in current directory f in *.xml   #increment p_cust_order_ref here done 

inside loop how can increment p_cust_order_ref 1 every time loops

so reads 10000028 uses on first loop 2nd 10000029 3rd 10000030 4th 10000031 

((p_cust_order_ref+=1)) 

or

let p_cust_order_ref+=1 

Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -