I have a rather large text corpus, of which I would like to check a few lines to see if the format is correct (and to just generally get some idea of its contents). Is there a simple one-liner that can be used to print just the first few lines of a huge text file?
Personally I'm using PowerShell, but answers are appreciated for bash and several other shells.