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 are shells born?
Write down the syntax of "for " loop
How to find duplicate record in file using shell script?
Write a shell script to get current date, time, user name and current working directory.
Can you write a script to portray how set –x works?
What are the four fundamental components of every file system on linux?
How to open a read-only file in the shell?
How to print pid of the current shell?
Explain about login shell?
How do I start a shell script?
How to get the last line from a file using just the terminal?
What is shell and shell script?
What's the difference between scripting and coding?
How will you connect to a database server from linux?
How do I edit a .sh file?