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 use of finger command?
Write a command that will display files in the current directory, in a colored, long format.
What are grep patterns?
What is the functionality of a top command?
What are the unix commands?
why metadb requires a seperate slice to create Solaris volume manager
What is the nmap command?
What does touch command do in unix?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
Describe the usage and functionality of the command rm –r * in unix?
How do you grep a case insensitive?
What is grep short for?
Why is awk called awk?
What is in grep command?
Explain the steps that a shell follows while processing a command.