Skip navigation.
Home
Your source for Perl tips, howto's, faq and tutorials
( categories: )

Let's say you want to print from 'file.txt' only the lines 10 to 20:

perl -ne 'print if 10..20' file.txt