What is use of "cut" command?

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


Please Help Members By Posting Answers For Below Questions

What is the command to find out users on the system?

572


What is another name for a bash shell script that you might see?

1010


How can I set the default rwx permission to all users on every file which is created in the current shell?

902


What is shell and terminal?

573


What language is bash?

489






What are the four fundamental components of every file system on linux?

1160


Explain about sourcing commands?

635


How do I run a script on mac?

568


What is the equivalent of a file shortcut that we have a window on a linux system?

602


What is the purpose of scripting?

575


Why is a script important?

562


Hello all, This is my assignment on shell scripting, can anyone help me regarding this ? Create a shell script which connects to the database In second shell script include the first script for the DB connection Create a table (PRADEEP_DATA) with 2 columns (name, value) In Third shell script include the first script for the DB connection And insert/delete the values from the Table, by accepting input from the user This functionality should be a menu driven Program: 1) Insert to the database a. Name b. value 2)Delete from the database a.Name b.value Exception handling needs to be taken care.

1851


What is shell company all about?

573


What command needs to be used to take the backup?

528


What are the 3 standard streams in linux?

570