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

Explain command to view process running?

609


What is the use of tee command?

563


What is grep and how do you use it?

569


Enumerate some of the most commonly used network commands in unix?

612


How do you grep recursively?

551






What is grep r?

584


How do I search for a file in unix command?

541


What does the metacharacter mean?

608


What are the differences among a system call, a library function, and a unix command?

563


What is awk command used for?

596


How do I open a port?

587


Which command can you use to find the currently running process in unix server?

583


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

619


Does cp command overwrite files?

614


What command is used to check the current users?

590