We gonna normalize some csv files today.
Get rid of your invalid utf8 and make some simple data transformations, hassle-free!
- Java (14+, 16 works)
- Maven
this program was built with openjdk 14 and runs with higher versions like 16
Follow installation instructions
- tl;dr add mvn to path
- export PATH=/opt/apache-maven-3.8.1/bin:$PATH
You can execute the following commands in the root directory:
- build jar:
mvn clean package - execute jar:
java -jar target/csv-normalization-1.0.0-SNAPSHOT.jar < [input_file.csv] > [output_file.csv] - execute jar and also print errors:
java -jar target/csv-normalization-1.0.0-SNAPSHOT.jar < [input_file.csv] > [output_file.csv] 2> [err.log] - just run tests:
mvn test
Some input csv files are included in src/test/resources for testing various scenarios