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...


What is Awk and Sed?



What is Awk and Sed?..

Answer / shoaib

sed is a stream editor. It works with streams of characters on a per-line basis. It has a primitive programming language that includes goto-style loops and simple conditionals (in addition to pattern matching and address matching). There are essentially only two "variables": pattern space and hold space. Readability of scripts can be difficult. Mathematical operations are extraordinarily awkward at best.

awk is oriented toward delimited fields on a per-line basis. It has much more robust programming constructs including if/else, while, do/while and for (C-style and array iteration). There is complete support for variables and single-dimension associative arrays plus (IMO) kludgey multi-dimension arrays. Mathematical operations resemble those in C. It has printf and functions. The "K" in "AWK" stands for "Kernighan" as in "Kernighan and Ritchie" of the book "C Programming Language" fame (not to forget Aho and Weinberger). One could conceivably write a detector of academic plagiarism using awk.

Both programs use regular expressions for selecting and processing text.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SDK Interview Questions

What is the difference between NTFS & FAT File systems

6 Answers   CA,


Explain about dynamic memory allocation algorithm?

0 Answers  


API used to hide window

2 Answers   Microsoft, TCS, Wipro,


Explain about busy waiting?

0 Answers  


can you create con folder in windows, if not why?

3 Answers  


Explain the reasons for implementing process migration?

0 Answers  


what is active directory

6 Answers   Sysnet, TCS,


where the system time is stored? In processor or in Seprate timer ic for that?

2 Answers  


What are the hardware problem you face regularly in your organization?

5 Answers  


absolute path gives the location a file or directory in reference to a rile directory while relative path is a path given file starting from another file. explain?

0 Answers   NIBS,


If you do not have cd drive then how will you format c drive?

0 Answers  


Explain how is the process address space handled during process migration?

0 Answers  


Categories