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

The command will be like this

grep -c "abd" <file_name>

This command gives you the line number which contain three
character.

Regrds,
Sudhir

Is This Answer Correct ?    6 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain ‘library functions’ with respect to unix commands?

1214


What are awk commands?

1222


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

1320


Why is shebang used?

1186


What is the use of the command 'ls -x chapter[1-5]' ?

1268


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

1355


What is sed awk grep?

1183


Is it inbetween or in between?

1106


Name the unix command to find how many days the server has been up.

1206


What is in grep command?

1211


What is grep in bash?

1114


What is the use of finger command?

1267


Can you enlist some commonly used network commands?

1154


What are reported commands?

1190


Differentiate cat command from more command.

1201