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) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -