I want to access specific lines from a txt file.
Let's say, the lines 1 to 5 using variables to store the upper and down limits.
I tried using:
awk 'NR==1, NR==5 {print $0}' test.txt
but I can't pass variables inside the expression.
awk 'NR==$START, NR==$FINISH {print $0}' test.txt