Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is use of "cut" command?

Answer Posted / seshadri sethi

Cut - Utility used to cut/Strip out the required data/text
from the source.

Cut can be used in three modes,

Stripping by Character

cut -c 1-3

Striping by Byte length

cut -b -1-72

Stripping by delimiter and fields.

cut -d “|” -f1

Where

-d “|” -> Delimiter used in input text to separate columns

-f1 -> Field/Column number

While processing huge input files, Cut’s performance is far
better than awk

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are filters explain sort with all the options available?

1279


How to get script name inside a script?

960


What will happen to my current process when I execute a command using exec?

977


What does egrep mean?

913


What does path stand for?

991


Is shell scripting difficult?

890


What is a shell made of?

904


What does $@ mean in shell?

963


What does it mean to debug a script?

993


Write a command sequence to find all the files modified in less than 2 days and print the record count of each.

1440


What is c in shell script?

1018


What is the difference between scripting and coding?

969


What is shell scripting used for?

933


What does the sh command do?

1026


What shell is bin sh?

905