I have the following code which successfully reads the line of the file that I want:
tail -n 9 myfile | awk 'NR==1'
although I do not want that this writes anything in my script. So I tried to assign a parameter into it, but it doesn't work in this way:
this=tail -n 9 myfile | awk 'NR==1'
Eventually, I want to read the second argument, which is a number, by ${1}
. Could you tell me how can I do that?