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
How do I search for text in vi?
What are reported commands?
What are grep patterns?
How do I use nslookup?
how to sort the content of the file based on numeric values
Is command prompt unix?
What is grep and how do you use it?
What is updatedb?
What is awk command used for?
What are the differences among a system call, a library function, and a unix command?
What are the unix commands?
What do know about tee command?
How to find $ai_serual resolved path by using unix
How do I delete files from command prompt?
What is the function of grep command in unix?