I need to read into my script 3 parameters, the first 2 are numbers and the third one is a .txt
file.
For example:
example.sh 3 2 exam.txt
And with the third parameter exam.txt
that already has some text in it I need to search for lines with head
and tail
.
The question is how do I read that exam.txt
? Tried "$3"
but when working with it, it only uses the word, not the file.