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

How do I delete files from command prompt?

1158


What is unix command?

1204


What is the first character of the output in ls l command?

1159


What is the comma to show the space allocation of files?

1023


What are reported commands?

1076


Explain command to show the space allocation of files?

1071


What is the comma to display different lines that are found when compare two files?

1087


Which command will print your home directory on screen?

1033


Explain how to use grep command to list find the records of a file containing 10 different strings?

1016


What is used to type command?

1012


What is ‘ps’ command for?

1139


Explain ‘library functions’ with respect to unix commands?

1114


What do chgrp command do?

1146


How does pipe () work?

1044


What is the use of tee command?

1077