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 s and g in sed command?
What are reported commands?
What are the general commands in using unix os for a beginner?
What does grep v do?
What are the unix commands?
What is the behavioural difference between cmp and diff commands?
What is the size of time_t?
Write a command that will display files in the current directory, in a colored, long format.
Are you in or at the office?
What does pipe () return?
How can we use grep command in unix?
What are some command words?
What are bash commands?
What is .sh file?
What is the pipe command?