Tag Info

New answers tagged


If we know the range to select, from the first line: lStart to the last line: lEnd we could calculate: lCount="$((lEnd-lStart+1))" If we know the total amount of lines: lAll we also could calculate the distance to the end of the file: toEnd="$((lAll-lStart+1))" Then we will know both: "how far from the start" ($lStart) and "how far from the ...

Top 50 recent answers are included