version 1.66, 2023/11/25 16:31:33 |
version 1.67, 2023/11/28 20:54:38 |
|
|
THIS SOFTWARE. |
THIS SOFTWARE. |
****************************************************************/ |
****************************************************************/ |
|
|
const char *version = "version 20231124"; |
const char *version = "version 20231127"; |
|
|
#define DEBUG |
#define DEBUG |
#include <stdio.h> |
#include <stdio.h> |
|
|
} |
} |
if (strcmp(argv[1], "--csv") == 0) { /* turn on csv input processing */ |
if (strcmp(argv[1], "--csv") == 0) { /* turn on csv input processing */ |
CSV = true; |
CSV = true; |
|
if (fs) |
|
WARNING("danger: don't set FS when --csv is in effect"); |
argc--; |
argc--; |
argv++; |
argv++; |
continue; |
continue; |
|
|
break; |
break; |
case 'F': /* set field separator */ |
case 'F': /* set field separator */ |
fs = setfs(getarg(&argc, &argv, "no field separator")); |
fs = setfs(getarg(&argc, &argv, "no field separator")); |
|
if (CSV) |
|
WARNING("danger: don't set FS when --csv is in effect"); |
break; |
break; |
case 'v': /* -v a=1 to be done NOW. one -v for each */ |
case 'v': /* -v a=1 to be done NOW. one -v for each */ |
vn = getarg(&argc, &argv, "no variable name"); |
vn = getarg(&argc, &argv, "no variable name"); |