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

Is shell scripting useful?

1061


What happens when you type ls?

1002


write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?

4134


Explain about "s" permission bit in a file?

1061


How to open a read-only file in the shell?

1129


How will you emulate wc –l using awk?

1540


What language is bash?

929


Why do we write bin bash in shell scripts?

1022


How to calculate the number of passed arguments?

1108


Why is a script important?

1075


What is c in shell script?

1072


Can shell script run on windows?

1074


What language is shell scripting?

1035


What are zombie processes?

1033


Explain about return code?

1087