can you point me to your FAQ? On Mon, Jan 4, 2021 at 8:39 AM Greg Wooledge <wool...@eeg.ccf.org> wrote:
> On Mon, Jan 04, 2021 at 08:26:59AM -0500, Saint Michael wrote: > > In this case, how do I quickly increase the number stored in "foo"? > > the file has 10000 as content, and I have a new value to add to it > quickly. > > Is there an atomic way to read,add, write a value to "foo"? > > Nope! > > It's almost like bash isn't a real programming language, huh? > > (The workaround you're looking for is called "locking". My FAQ has a > page about it, but it's pretty basic stuff, intended to prevent two > instances of a script from running simultaneously, not for distributed > computing applications.) > >