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 |
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
If JFS file system is 100% full how we can increase the file system ?
Write a command to kill the last background job?
What are the dos commands?
what is mount ,tell me about mount ,how can u use in real time project??
what is the command to find out which shell you are running?
How does one process we can start an executable file? How to get the PID process, which we started?
hw will u use awk in replacing cahrs and files
Describe the zip/unzip command using gzip.
Can you enlist some commonly used network commands?
How to view the hidden files in /etc directory?
In UNIX, what is the command to edit contents of the file?