gurpreetsingh13 has asked for the wisdom of the Perl Monks concerning the following question:
Simply using head,tail it will work outsed -n '60,70 p' wordlist
Using perl $. it will work outtail -n +60 wordlist|head -10
Using perl list context, it works out.perl -ne 'print if $. ~~ [60..70]' wordlist
perl -e 'my @lines=`cat wordlist`;print @lines[60..70];'
perl -e 'print @(`cat wordlist`)[60..70];'
perl -e 'print (@(`cat wordlist`))[60..70];'
|
|---|