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

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -