Defines the input CSV file name
The input file name from where the CSV data will be read.
It is generally not necessary to use this command. The input CSV file name is automatically the first parameter that is interpreted as a file name (i.e., it is not a valid csvfox command parameter).
Use this command if you want to specify explicitly that this is to be the input file name. That can be done just for clarity.
But it is necessary in a few cases:
- If you define the input file name after the output file name.
- If you want to explicitly define an encoding for the input file.
- When there is no input file name, because the CSV-formatted input will come from a piped input stream (STDIN) via |. In this case, leave the input file name empty.
%in=input file name %in/encoding=input file name %in=
- csvfox %in=infile.csv (...) outfile.csv
- csvfox %in/iso-8859-2=infile.csv (...) outfile.csv
- csvfox infile.csv (...) outfile.csv
- All three commands define that the CSV file shall be read from infile.csv (and be written to outfile.csv).
- csvfox %in= (...) outfile.csv
- csvfox %in/UTF-8= (...) outfile.csv
- csvfox %out=outfile.csv (...)
- csvfox (...) %out=outfile.csv
- All four commands define that the CSV data shall be read from STDIN.
In the first two examples, an explicitly empty input file name is defined.
In the other examples the input file name is just omitted and only the output file name is defined, which implies that the input file name is empty.