Export to CSV

jr can be used to generate random data and export them to a csv file. This can be easily achieved using a custom template; next example will show how to generate custom data with a custom template and export results to file city_temperature.csv

echo -e "city;temperature" > city_temparature.csv && jr template run -n 4 --embedded '{{city}};{{format_float "%.1f" (floating 40 5)}}' >> city_temparature.csv
city;temperature
Tampa;30.2
Tucson;36.0
Cincinnati;31.5
Houston;24.2