| Crates.io | fixed2csv |
| lib.rs | fixed2csv |
| version | 1.0.0 |
| created_at | 2022-05-25 14:42:58.06677+00 |
| updated_at | 2022-05-25 14:42:58.06677+00 |
| description | Convert files with fixed-width columns to CSV |
| homepage | https://github.com/faradayio/csv-tools/tree/main/fixed2csv |
| repository | https://github.com/faradayio/csv-tools |
| max_upload_size | |
| id | 593566 |
| size | 18,965 |
fixed2csv: A quick-and-dirty tool for converting fixed-width fields to CSVYou can do this with awk, but this should be faster.
To install:
cargo install -f --git https://github.com/faradayio/fixed2csv.git fixed2csv
Given an input file input.txt:
first last middle
John Smith Q
Sally Jones
You should be able to run:
$ fixed2csv -v 10 10 6 < input.txt
first,last,middle
John,Smith,Q
Sally,Jones,
Processed 65 B in 1s, 65 B/s