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

Answer Posted / saravan

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

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do chgrp command do?

590


What is the use of egrep command in unix?

624


What is the command to view process running?

576


What difference between cmp and diff commands?

723


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

623






How do I open a port?

596


How can we use grep command in unix?

616


What is used to type command?

541


What is rmdir command?

553


What is ‘ps’ command for?

614


How do I search a whole word in vim?

693


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1760


Explain command to view process running?

615


What is the comma to show the space allocation of files?

560


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

673