Unix shell scripting with counter -


I'm new to Unix shell scripting

I need to write a shell script which is a The variable should increase the value (numeric) and when I run the script the next time the variable should be assumed and it should be incremented. Once it helps, it will be very grateful

thanks < / P>

Try the following code:

  vale = 'expr 0000000000 + 1' Ed -s $ 0 & lt; & Lt; EOT1S / .......... / `printf '% 010d' $ vale` / wq EOT $ vale $ vale    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -