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 sed awk grep?

609


How do I search a whole word in vim?

693


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

644


What are awk commands?

586


What is the use of sed command in unix?

601






What does this command do,"$more readme.txt“?

693


Who wrote grep?

587


What do chmod, chown, chgrp commands do?

641


What are the commands in UNIX to list the files in a Directory?

620


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

684


Name the various commands that are used for the user information in unix.

541


What are file commands?

656


Differentiate cat command from more command.

578


How do I search for a file in unix command?

549


Does cp command overwrite files?

626