André Figueira

Systems engineer - I write apps, I make websites, opinions are my own...

Generate massive files with vim

So, you're going to need to start off with a small amount of content in your file to begin with, then using vim perform the following and it'll give you a huge amount of data pretty easily

vi your-file.csv

// moves cursor to the beginning of the file
gg 

// yanks until the end of the file
yG 

// paste the yanked text 500 times
500p

// save the file and exit
:wq 

One of my mates also has a Gist which does something similar and probably easier! https://gist.github.com/olivertappin/0fc0b6a76e6555e51f884f9638249de2