if we create a file, in that 10 rows(means 1,2,....9,10
like). i want 7 row exactly, which command use in unix?
plz send this question.
Answer Posted / niranjan
To display first 7 lines of file:-
1) head -7 filename
2) cat filename|head -7
To display only 7th line of file:-
1) head -7 filename|tail -1
2) cat filename|head -7|tail -1
3) tail +7 filename|head -1
choice is ur's..Which one u feel looks gud...:):):)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain command to show the space allocation of files?
What is the general format of unix command syntax?
What are awk commands?
How to use grep command to list find the records of a file containing 10 different strings?
What is the pipe command?
What is the command to compare two files in unix?
How many unix commands are there?
What is pipe command in unix?
Name the unix command to find how many days the server has been up.
What is the first character of the output in ls l command?
Write a command that will display files in the current directory, in a colored, long format.
Is grep faster than awk?
What do know about tee command and its usage?
What are file commands?
hw will u use awk in replacing cahrs and files