"be consistent" | |
PerlMonks |
Re: extract (a range of) numbered lines from a file -- onelinerby Discipulus (Canon) |
on Sep 20, 2016 at 07:34 UTC ( [id://1172203]=note: print w/replies, xml ) | Need Help?? |
sed -e '10,15p;4p;s/.*// file | awk !/^$/{print $0} somefile' Sorry but I dont speak urdu.. but I would go with
++ for your post L* PS: the regex is inspired from rosettacode L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Cool Uses for Perl
|
|