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

Answer Posted / usama el far

grep -n root /etc/passwd|cut -f1 -d:

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

960


What does grep v grep do?

554


What are the dos commands?

648


What are grep patterns?

579


Name the general commands in using unix os for a beginner?

623






Who invented grep?

651


Which command is used to kill the last background job?

779


What is the command to find hidden files in the current directory?

581


What does 'mkdir' command do in UNIX?

660


Which unix command lists files/folders in alphabetical order?

618


What is the significance of the 'tee' command?

596


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

665


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

579


why metadb requires a seperate slice to create Solaris volume manager

2556


Why is awk called awk?

577