Write a grep (or grep) command that selects the lines from
a file that have exactly three characters.

Answer Posted / saravan

Sorry use the below commands to get the exact word contains
3 char in the file.

grep -w "[a-zA-Z][a-zA-Z][a-zA-Z]" <filename>

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of cut command in unix?

694


What command is used to switching between users in unix?

564


What are file commands?

655


What is the pipe command?

578


What are some command words?

567






How do I clear my terminal history?

586


Can you explain a little bit about command substitution?

612


how to sort the content of the file based on numeric values

1254


What difference between cmp and diff commands?

724


What is “chmod” command?

566


What do chmod command do?

606


How many unix commands are there?

631


Which unix command lists files/folders in alphabetical order?

620


What is the function of grep command in unix?

591


What is the search command in unix?

603