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 / yogita

grep '^..$' a.txt

Is This Answer Correct ?    12 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sed awk grep?

1145


What is merge command in unix?

1518


What does the “echo” command do?

1165


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:

2275


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

1178


Why is it called a shebang?

1202


What is the difference between grep and grep?

1143


Are you in or at the office?

1129


Explain the steps that a shell follows while processing a command.

1247


What is awk used for?

1142


How do you repeat a command in terminal?

1241


What does the command ' $who | sort –logfile > newfile' do?

1283


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

1237


Explain ‘library functions’ with respect to unix commands?

1178


What does 'mkdir' command do in UNIX?

1322