ff2csv converts fixed-length-records to Comma Separated Values (CSV) format.
I typically use ff2csv to review DAT files that an iSeries program generates. Converting it to CSV makes it easy to analyze the data, easier to share and easier to import into other tools (a DB, Excel, etc)
Add this line to your application's Gemfile:
gem 'ff2csv'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ff2csv
The following command reads each line in records.dat and writes each line in CVS format to STDOUT, while using the fixed-length-record format described in record_format.txt
ff2csv record_format.txt < records.dat
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request