I have two scripts running parallelly and they are echoing to the same file. One script is echoing
+++++++++++++++ to the file while the other script is echoing
=========== to the file.
Below is the first script
#!/bin/bash while [ 1==1 ]; do echo "+++++++++++++++" >> log.txt # commands done
Below is the second script
#!/bin/bash while [ 1==1 ]; do echo "===========" >> log.txt # commands done
The log.txt file has around 1400000 lines printed and not a single line has jumbled case like ++== or something like that?
Does Linux prevent this kind of jumbling from happening and if it does then how and why ?