inetpro | good mornings | 08:46 |
---|---|---|
chesedo | morning all | 09:31 |
* chesedo is back from a week's vacation | 09:31 | |
chesedo | i am having issues with a bash script which i have reduced to this -> https://bin.snyman.info/mmmpkcc5 | 09:34 |
Kilos | hi there all of ya | 10:25 |
chesedo | hi oom Kilos | 10:26 |
chesedo | how are things? | 10:26 |
inetpro | chesedo: seq 1 3 | 10:31 |
inetpro | what are you trying to achieve? | 10:31 |
inetpro | or | 10:36 |
inetpro | for i in `seq 1 3`; do echo "In loop $i";done | 10:36 |
inetpro | or | 10:36 |
inetpro | for i in {1..3}; do echo "In loop $i";done | 10:36 |
Kilos | hi chesedo ok ty lad and you? | 10:47 |
Kilos | bad net as usual | 10:47 |
inetpro | welcome back oom Kilos | 10:48 |
inetpro | oh and hi as well | 10:48 |
chesedo | inetpro: that is just my reduced case. i need to to keep count of something in a loop (which increment based on some condition) and have the value available afterwards | 10:49 |
chesedo | Kilos: good ty | 10:49 |
inetpro | chesedo: ah, that makes sense | 10:50 |
chesedo | inetpro: the actual script with my current workaround -> https://bin.snyman.info/mmmgwth3 | 10:53 |
chesedo | `MOVED` is the counter | 10:55 |
chesedo | line 70 is the inc, and 74-80 the workaround case | 10:57 |
chesedo | but i would like to move the workaround case outside the pipe to have the code cleaner and easier to understand | 10:58 |
inetpro | interesting | 11:03 |
Kilos | ty inetpro and hi, i was here yesterday and you werent | 13:17 |
Kilos | just your ghost was | 13:17 |
Kilos | not the one that greets | 13:17 |
inetpro | oh my! | 13:18 |
chesedo | lol | 13:23 |
Kilos | 'lol | 13:26 |
pavlushka | ahoy ZA | 19:06 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!