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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

some os have a tree structure file system that limits the depth of a tree and small number of levels.what limit does this have on user? how does this simplify file system design?

1826


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

975


what is a property sheet?

2452


If you tries to mount a share ( home directory )in a client machine, and it fails how do u approach?

2332


Can you tell which dlls are used for SDK?

1055


how make a bootable dick

2921


What are the reasons for implementing process migration?

1185


Explain about operating system of mac?

1149


Explain the process control block of UNIX ?

1742


Explain the difference among deadlock avoidance, detection and prevention?

1243


What is direct mount and indirect monut?

2492


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?

1804


What items of information about a task might be useful in real time scheduling?

4519


when affected the system from virus , which paths will be it stored in system ?

2337


Explain about busy waiting?

1007