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 |
What is Awk and Sed?
API used to hide window
2 Answers Microsoft, TCS, Wipro,
If you do not have cd drive then how will u format c drive?
Which file system allow as much fragmentation FAT32 or NTFS?
Explain the ways to infect the system by virus?
Explain the reasons for implementing process migration? How is the process address space handled during process migration?
If system does not boot What are the files missing ? And how to troubleshoot the problem without reinstalling OS ?
Discuss some of the reasons for implementing process migration ? How is the process address space handled during process migration?
when affected the system from virus , which paths will be it stored in system ?
if You do not cd drive then how will u format c drive ?
Explain the difference between ntfs & fat file systems?
What are the hardware problem you face regularly in your organization?