Let's build a Deis cluster in Google's Compute Engine!
Get a few Google things squared away so we can provison VM instances.
| #!/bin/bash | |
| FILENAME=file-to-split.csv | |
| HDR=$(head -1 ${FILENAME}) | |
| split -l 100 ${FILENAME} xyz | |
| n=1 | |
| for f in xyz* | |
| do | |
| if [[ ${n} -ne 1 ]]; then | |
| echo ${HDR} > part-${n}-${FILENAME}.csv | |
| fi |