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?

Answers were Sorted based on User's Feedback



What is use of "cut" command?..

Answer / 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

What is use of "cut" command?..

Answer / 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

What is use of "cut" command?..

Answer / suresh

Cut is used for column wise search of strings orto display
it.

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More Shell Script Interview Questions

I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.

0 Answers  


Create a bash shell script that reads a line from the user consisting of 5 words and then prints them out in reverse order. Name this script "reverse.sh"

1 Answers  


Explain how you Automate your application using Shell scripting.

0 Answers   MAHINDRA,


Where is bash history?

0 Answers  


Explain about sourcing commands?

0 Answers  


madhar chod unix ke 10 commands dhang se likh nahi sakta hai

0 Answers   Cap Gemini,


What is bash command used for?

0 Answers  


Explain about login shell?

0 Answers  


What is console line?

0 Answers  


How do you know which shell I am using?

0 Answers  


How to customise the existing shell?

1 Answers  


How to check if a directory exists?

0 Answers  


Categories