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
What do know about tee command?
Which unix command lists files/folders in alphabetical order?
What is the general format of unix command syntax?
What does #!/ Bin sh do?
What is the difference between awk and grep?
Explain command to show the space allocation of files?
What is a bash command?
Describe the zip/unzip command using gzip.
What are file commands?
What are reported commands?
Which command is used to find whether the system is 32 bit or 64 bit?
What is unix command?
How do you grep recursively?
How do I search a whole word in vim?
What is the use of tee command?