Skip to main content
9 events
when toggle format what by license comment
Oct 23, 2019 at 9:36 comment added SkaraBrae Rexkogitans - I accepted your answer. I could start from it and do my changes. But it showed as always, that the requirements must be more clear before coding any character. Else it starts in a direction, which can be very expensive. The question from steeldriver was a valid statement. But thanks for your help.
Oct 23, 2019 at 9:34 vote accept SkaraBrae
Oct 20, 2019 at 15:25 comment added SkaraBrae Again, thank you for your code rexkogitans. It showed how to output two values within the read line. As steelsdriver asked a bit deeper, I told there, that I actually use the values to do later on a sed on another file, where I then extract the content. So, 1 would be the value from and 2 the value unil incl. This means, that I need to have the values in pairs. There are always even numbers in the file, where I read the values out, to build afterwards the sed. I still need to investigate, but your solution helped me further.
Oct 20, 2019 at 14:30 comment added rexkogitans So, the output should look as you want it now.
Oct 20, 2019 at 14:25 history edited rexkogitans CC BY-SA 4.0
deleted 180 characters in body
Oct 20, 2019 at 14:13 history edited rexkogitans CC BY-SA 4.0
added 180 characters in body
Oct 20, 2019 at 13:14 comment added SkaraBrae Thank you for your valid answer. Much appreciated. It definetly shows the direction to go. Can you let me know, how to make it the other way around - first line and then the other line. $ ./test.sh testfile.txt Current line: 1 This is the first line, so no previous. Current line: 2 Previous line: 1 Current line: 3 Previous line: 2 Current line: 4 Previous line: 3 ...
Oct 20, 2019 at 12:59 history edited rexkogitans CC BY-SA 4.0
edited body
Oct 20, 2019 at 12:47 history answered rexkogitans CC BY-SA 4.0