Posts Tagged: truncate

How to Truncate a File from Command Line on Mac or Linux

I often get data files with a ton of data, but I only need the first few lines. It’s usually because I’m building out some test data for code I’m writing. I don’t need to create 2,000 accounts to run my code. Here’s how I figured out how to truncate a file from the command-line… Read more »