grep something * > grep.txt
Make sure "something" matches at least once in your directory. Good way to grind your machine to near halt, if you ever want to do that, too.
But spyordie's is much more deliberate and efficient 😛
Also, with a little programming effort, you can open a file, seek to somewhere very far (multiple gigs?), write a single byte and the file is automatically that big. If your filesystem is smart enough, it will only allocate a few disc blocks instead of billions but the file will still look that big. Been too long since operating systems class to remember which filesystems have such brains.