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 the comma to show the space allocation of files?

1011


What is the pipe command?

1122


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

1145


What does the metacharacter mean?

1086


Can you explain a little bit about command substitution?

1061


How do I run a whois command?

1097


Which command can you use to find the currently running process in unix server?

1067


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

1086


Why is it called grep?

968


What is the use of find command in unix?

1071


Explain ‘system calls’ with respect to unix commands?

1038


What is the command to compare two files in unix?

1052


Which command is used to restrict incoming messages?

1042


Explain the steps that a shell follows while processing a command.

1161


What is unix command line?

1172