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

Answer Posted / rahul

grep -nw <charvalue> <filename>

Is This Answer Correct ?    1 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the command to compare two files in unix?

630


hw will u use awk in replacing cahrs and files

2745


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

771


What is the significance of the 'tee' command?

604


How do I use grep to search for a file?

590






What does the metacharacter mean?

620


What is the comma to display different lines that are found when compare two files?

603


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:

1775


How can we use grep command in unix?

625


What does this command do,"$more readme.txt“?

699


Describe the usage and functionality of the command rm –r * in unix?

837


What is the use of sed command in unix?

610


What are awk commands?

592


Give the command for finding the current date.

593


Explain command to show the space allocation of files?

639