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...

Write a grep (or grep) command that selects the lines from
a file that have exactly three characters.

Answer Posted / sudhir

The command will be like this

grep -c "abd" <file_name>

This command gives you the line number which contain three
character.

Regrds,
Sudhir

Is This Answer Correct ?    6 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the unix commands?

1048


What is command statement?

1122


What is grep and how do you use it?

1071


What are some command words?

1100


Explain command to view process running?

1091


How do you grep recursively?

1067


How do I delete files from command prompt?

1168


What is the command to view process running?

1077


Why is it called a shebang?

1116


Differentiate cat command from more command.

1097


Explain mount and unmount command.

1163


Why is grep called grep?

1243


Is command prompt unix?

1108


Write a command to display a file’s contents in various formats?

1169


What does sed command do in unix?

1137