# just lines 17 to 45 from file *.conf perl -ne 'print if 17 .. 45' *.conf