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 / soumendra
ans- cut -d " " -f 1-7 <file name>
by this u can get all the 7 rows of ur file.
here i give 'space" as the delimeter.
u give the delimeter as u give in the file.
by -f option u can exactly get the 1 to 7 field/rows
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the difference between cat and more command?
Explain command to show the space allocation of files?
What are filter commands in unix?
What are grep patterns?
Why is it called grep?
Is grep faster than awk?
What is the functionality of a top command?
How do I delete files from command prompt?
What is the behavioural difference between cmp and diff commands?
How do I search for a file in unix command?
Explain ‘system calls’ with respect to unix commands?
How to display no of records in oracle using unix command?
What is the comma to show the space allocation of files?
Using unix command how to display no of records in oracle?
What are the commands in UNIX to list the files in a Directory?