in reply to Re: best way to keep a simple count?
in thread best way to keep a simple count?
echo $((`cat counter` + 1)) > counter
Which won't work well if there can be multiple instances of the program running at the same time.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: best way to keep a simple count?
by Anonymous Monk on Apr 11, 2005 at 16:04 UTC |