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

Sorry use the below commands to get the exact word contains
3 char in the file.

grep -w "[a-zA-Z][a-zA-Z][a-zA-Z]" <filename>

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does cp command overwrite files?

1219


What is awk used for?

1145


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

1239


What are filter commands in unix?

1211


What is awk command used for?

1255


Which unix command lists files/folders in alphabetical order?

1775


What is the functionality of a top command?

1117


What is ctrl d?

1110


Who invented grep?

1176


How do I search for text in vi?

1057


Explain command to display different lines that are found when compare two files?

1188


Write a command to kill the last background job?

1111


Which command should you use to find the remaining disk space in unix server?

1320


Explain mount and unmount command.

1233


What happens when we execute a unix command?

1153