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

Answer Posted / ripu

grep ^...$ <filename>

Is This Answer Correct ?    61 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of sed command in unix?

601


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

673


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

625


What is the general format of unix command syntax?

694


What's a command word?

591






What is the difference between cat and more command?

627


What is ctrl d?

594


Who command in unix?

573


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


How can we use grep command in unix?

616


Is grep faster than awk?

557


What is awk used for?

619


What does the “echo” command do?

624


How do I search for a file in unix command?

546


What is updatedb?

586