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

Explain ‘system calls’ with respect to unix commands?

1097


What is the difference between grep and grep?

1137


Is it inbetween or in between?

1065


What are the general commands in using unix os for a beginner?

1175


How do you grep recursively?

1111


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

1072


why metadb requires a seperate slice to create Solaris volume manager

3172


What are bash commands?

1169


What does the command ' $who | sort –logfile > newfile' do?

1280


What does the command '$ls | wc –l > file1' do?

1235


What is the significance of the 'tee' command?

1202


What is the difference between cat command and more command?

1211


What are grep patterns?

1088


What is ‘ps’ command for?

1187


What is the nmap command?

1192