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

Does cp command overwrite files?

630


What is the use of the tee command?

604


What does the md command do?

578


What is grep r?

598


What is $0 bash?

653






What is the behavioural difference between cmp and diff commands?

684


Enlist some filename manipulation commands in unix.

557


What happens when we execute a unix command?

602


What are the unix commands?

560


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

631


What does grep v do?

564


How do you repeat a command in terminal?

599


What is in grep command?

653


What are filter commands in unix?

555


What command is used to check the current users?

599