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
What is awk command used for?
How does shebang work?
What is merge command in unix?
what is the advaantage of each user having its own copy of the shell?
why metadb requires a seperate slice to create Solaris volume manager
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
What is the use of egrep command in unix?
Which unix command to make a new directory?
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)?
Which command will print your home directory on screen?
Is command prompt unix?
What is difference between grep and find command in unix?
Which unix command lists files/folders in alphabetical order?
What is the use of find command in unix?
What is the comma to show the space allocation of files?