bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New Feature Request


From: Greg Wooledge
Subject: Re: New Feature Request
Date: Mon, 4 Jan 2021 08:38:56 -0500
User-agent: Mutt/1.10.1 (2018-07-13)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]