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

How do I search for a file in unix command?

987


What does #!/ Bin sh do?

1034


What is the function of grep command in unix?

1118


What does the md command do?

1081


What does the “echo” command do?

1107


What is the command to compare two files in unix?

1067


Which command is used to kill the last background job?

1299


What is in grep command?

1130


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

1159


What is the difference between grep and grep?

1071


What is awk good for?

1099


Explain ‘library functions’ with respect to unix commands?

1128


What is grep short for?

1009


What is sed awk grep?

1081


Can you enlist some commonly used network commands?

1066