Answer Posted / swaroopa
cut is used to get a specific data from a file. Supppose
you want to get a data in a file from column 10 to 20, you
can get it by using cut
eg: cat filename.txt | cut -c 10-20
eg: cut -c10-20 <filename.txt>
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
How can I send a mail with a compressed file as an attachment?
What is a beat in a script?
What is option in shell script?
How would you compare the strings in a shell script?
What is computer cli?
What is echo in shell?
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
Is shell a scripting language?
State the advantages of shell scripting?
one folder contains lot of students name but I want to fetch hello with every student name individually using shell script
Why is a script important?
What is shell environment?
What does $1 mean in bash?
Explain about stdin, stdout and stderr?
What is the syntax of while loop in shell scripting?