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 FAT?.
12 Answers Campus Interview, Mascot, MIS, Nile Bank,
what is the ways to infect the system by virus?
Explain the process control block of UNIX ?
If you do not have cd drive then how will you format c drive?
Explain the difference between ntfs & fat file systems?
what is the operating system of mac?
Define dynamic memory allocation algorithm?
Explain how is the process address space handled during process migration?
Explain the reasons for implementing process migration? How is the process address space handled during process migration?
Let us suppose one application needs 2GB RAM to run and dependent plugins will be load while running application. Here My doubt is how many processes will create for this application. I know the concept of virtual memory, which will provide RAM on demand. My straight forward question is what is the size of the process and is it single process will create by operating system to complete the task of my application.??? Thanks in Advance.
in a time-sharing operating system, when the time slot given to a process is completed,the process goes from the Running state to the: a) BLOCKED state b) Ready state c) SUSPENDED state d) Terminated state
3 Answers Public Service Commission,
Explain about operating system of mac?