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 / krishna reddy
sed -n '7p' <filename>
or
head -8 <filename>|tail -1
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Write a command to display a file’s contents in various formats?
What is grep short for?
What is rmdir command?
How do I search for a file in unix command?
What is command statement?
Name the general commands in using unix os for a beginner?
What is the command to find maximum memory taking process on the server?
Which command is used to delete all files in the current directory and all its sub-directories?
What is difference between grep and find command in unix?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
What is the behavioural difference between cmp and diff commands?
What does pipe () return?
Write a command to kill the last background job?
How to display no of records in oracle using unix command?
How do I use grep to search for a file?