I want to print the last line of a text file in shell the number of lines in my text are stored in a variable named n when I try to use sed command like this sed -n '$np' I get an error.How can I solve this problem ?
Asked
Active
Viewed 55 times