Questions
- For the best portability, which of the following shebang lines should you place in your
awkscripts?#!/bin/awk#!/usr/bin/awk -f#!/bin/awk -f#!/usr/bin/awk
- Which of the following statements is true?
- All
awkprogramming variables must be declared before you use them. - There are various types of
awkvariables, such as integer, floating-point, and string. - All
awkprogramming variables are string-type variables. - You must convert string-type variables to either integer or floating-point variables before using them in math operations.
- All
- Within an
awkscript, how would you define the comma as the field separator?-F=,-F=","-
FS=, - .
FS=","
- You have a text file with several lines of numbers, with blank spaces between the numbers. Each line has a different number of numbers...