what is the command to print last 8 lines of any text file.
Answers were Sorted based on User's Feedback
Answer / santosh sathe
1) use tail -8 filename
2) This will print last three lines of a file
cat 1.lst
hi
hello
bye
good
morning
sed -n '1,2!p' 1.lst
o/p
bye
good
morning
The last 3 lines are printed.sed command uses !(negation)
operator for skipping the 1st and 2nd line,That means it
will print all the lines except 1st and 2nd.
| Is This Answer Correct ? | 0 Yes | 1 No |
How do I open a port?
What is the pipe command?
What is pid?
Which command will print your home directory on screen?
What is a bash command?
What do you mean by zambie process?
What is the command to check ports active in UNIX?
their is a file1,file2 and i want to append file1 data to file2?
solaris Run level?
Is command prompt unix?
What do know about tee command?
What is an Unix command to convert HEX value to ASCII value located in any flat file.