---

How to select every 1,000th line from a file

Log files on Unix systems can easily grow to hundreds of thousands or even millions of lines. Here’s a simple way to pluck out every Nth line.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis