( categories: one liners )
Let's say you want to print from 'file.txt' only the lines 10 to 20:
perl -ne 'print if 10..20' file.txt
|
Your source for Perl tips, howto's, faq and tutorials
|
| Home | Links | RSS feed | Forums | Contact | |
NavigationUser login |
( categories: one liners )
Let's say you want to print from 'file.txt' only the lines 10 to 20:
|
|