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 / jyoti pruthi

grep -n "..." <filename>

It will give u the lines that have only 3 characters with
line numbers. Here, "..." replace any 3 characters (single
dot represent single character).

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is awk command used for?

1225


What is grep short for?

1045


What is the difference between awk and grep?

1241


What is pipe command in unix?

1297


What is the use of finger command?

1207


What is the use of sed command in unix?

1197


What will the following command do?

1117


What is s and g in sed command?

1114


What is the behavioural difference between cmp and diff commands?

1280


Describe the zip/unzip command using gzip.

1155


What does pipe () return?

1069


What is the use of awk command in unix?

1118


Which unix command lists files/folders in alphabetical order?

1746


What are awk commands?

1153


How do I open a port?

1080