$ head -10 file $ perl -ne'1..10 and print' file #### $ perl -ne'12345..12345 and print' file