Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write grep commands to select the lines that have exactly
two characters

Answer Posted / mr. manindra nayak

grep -w '^..$' filename
or grep '[a-z][a-z]' filename
or grep '[A-Z][A-Z]' filename

Is This Answer Correct ?    2 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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:

2265


Which command is used to find whether the system is 32 bit or 64 bit?

1149


How do I use nslookup?

1092


What is a bash command?

1176


Which command is used to restrict incoming messages?

1100


What are the general commands in using unix os for a beginner?

1168


What is command statement?

1168


Is command prompt unix?

1152


How do I search for a file in unix command?

1019


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

1209


How do I clear my terminal history?

1152


Why is it called grep?

1026


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

1239


Which command should you use to find the remaining disk space in unix server?

1306


What is pipe command in unix?

1302