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

Answer Posted / sudhir kumar

sorry the command will be like below..

grep -x "abc" <file_name>

Regards,
Sudhir Kumar

Is This Answer Correct ?    6 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are reported commands?

570


What is the command to find maximum memory taking process on the server?

676


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

774


What command is used to check the current users?

599


Can you explain a little bit about command substitution?

615






What are grep patterns?

581


What does 'mkdir' command do in UNIX?

667


What does sed command do in unix?

568


What is the unix command to confirm a remote host is alive or not?

594


Which command is used to delete all files in the current directory and all its sub-directories?

674


How do I open a port?

596


What are the unix commands?

560


How do you grep recursively?

562


What is ctrl d?

598


What is grep command in unix with examples?

615