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 conditional statement in shell scripting?

659


What is .sh file in mac?

557


What are script files?

551


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

1013


How to find all the files modified in less than 3 days and save the record in a text file?

612






is this growing field and what is average package in this?

1872


c program to implement unix/linux command to block the signal ctrl-c and ctrl-\ signal during the execution ls -l|wc -l

3156


What is @echo off?

569


What is shell scripting?

593


How do I run a script on mac?

570


State the advantages of shell scripting?

594


What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?

559


How to print the first array element?

550


What is awk script?

543


Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.

799