Hi folks,
I'd like to display certain lines of a textfile and only that certain line.
e.G.
Textfile
---------
machine number
display type
hardware key
serial number
-> Now if I choose to display the third line the output shall say "hardware key" or if I choose to display the first line the output shall say "machine number".
Problem is (at least as far as I know) that tail is only able to display the first or last line or several last lines, etc. but NOT only one specific line in the middle of the file ...
How could this be done ?
Regards
Thomas
I'd like to display certain lines of a textfile and only that certain line.
e.G.
Textfile
---------
machine number
display type
hardware key
serial number
-> Now if I choose to display the third line the output shall say "hardware key" or if I choose to display the first line the output shall say "machine number".
Problem is (at least as far as I know) that tail is only able to display the first or last line or several last lines, etc. but NOT only one specific line in the middle of the file ...
How could this be done ?
Regards
Thomas