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 is pipe command in unix?
Differentiate cat command from more command.
how to sort the content of the file based on numeric values
What is the use of egrep command in unix?
What is the command to find hidden files in the current directory?
What is used to type command?
Is command prompt unix?
What is sed awk grep?
What is the use of the command 'ls -x chapter[1-5]' ?
Explain command to view process running?
What is in grep command?
Describe the zip/unzip command using gzip.
Give the command for finding the current date.
What does the md command do?
Using unix command how to display no of records in oracle?