Questions
- For the best portability, which of the following shebang lines should you place in your
awk
scripts?#!/bin/awk
#!/usr/bin/awk -f
#!/bin/awk -f
#!/usr/bin/awk
- Which of the following statements is true?
- All
awk
programming variables must be declared before you use them. - There are various types of
awk
variables, such as integer, floating-point, and string. - All
awk
programming 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
awk
script, 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...