Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
This is in a function to isolate some variables – I'm assuming you don't want $prev, $dif, etc. set as global variables
Not sure what $marker is for, so assuming you want it set as a global var
~/.bash_profile, ~/.bashrc are read directly by bash so shouldn't start with the line #!/bin/sh or have executable mode set
You might want to consider making ~/days.log obsolete by changing the format for the first line of ~/ipy.log so that prev can be readtaken from the first line/field of ipy.log
This is in a function to isolate some variables – I'm assuming you don't want $prev, $dif, etc. set as global variables
Not sure what $marker is for, so assuming you want it set as a global var
~/.bash_profile, ~/.bashrc are read directly by bash so shouldn't start with the line #!/bin/sh or have executable mode set
You might want to consider making ~/days.log obsolete by changing the format for the first line of ~/ipy.log so that prev can be read from the first line/field of ipy.log
This is in a function to isolate some variables – I'm assuming you don't want $prev, $dif, etc. set as global variables
Not sure what $marker is for, so assuming you want it set as a global var
~/.bash_profile, ~/.bashrc are read directly by bash so shouldn't start with the line #!/bin/sh or have executable mode set
You might want to consider making ~/days.log obsolete by changing the format for the first line of ~/ipy.log so that prev can be taken from the first line/field of ipy.log