What are the main differences between sed and gawk?

What will be an ideal response?


The sed command is designed to edit lines of an input stream. The gawk command is intended to
select lines out of an input stream and then do various kinds of processing on those lines. There is
overlap between these commands, either one can do many functions, but one usually lends itself
better to your solution. The sed command works best when you merely want to make a frequent
modification to many lines in the input. On the other hand, gawk works best if you will be
rearranging the order of the input lines or the information on the lines (e.g. swapping columns).

Computer Science & Information Technology

You might also like to view...

Pressing [Shift] as you drag to create a shape maintains the shape's ____ as you change its size.

A. proportions B. style C. placement on the slide D. alignment

Computer Science & Information Technology

You can pin desktop apps and Windows Store apps to the Start menu but not Windows Accessories.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

During termination of twisted pair cabling, what should be done to ensure minimal cross talk is introduced?

a. No more than 1 inch of the cable should be exposed. b. No less than 1 inch of the cable should be exposed. c. Each pair should be stripped of insulation so that it doesn't get caught in the jack. d. Each pair should be twisted around another pair to reduce cross talk.

Computer Science & Information Technology

Which of the following is least likely to cause a fire in PC technology?

A. RAM memory B. Power supply C. Printer D. Hard drive

Computer Science & Information Technology