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
Why is shebang used?
What does sed command do in unix?
Explain command to display different lines that are found when compare two files?
What are awk commands?
Which command is used to restrict incoming messages?
What is used to type command?
What is unix command?
How do I search for text in vi?
What are the unix commands?
Can you explain a little bit about command substitution?
Can you enlist some commonly used network commands?
How do I delete files from command prompt?
What is command substitution?
What is the use of cut command in unix?
Which unix command to make a new directory?