in reply to extract (a range of) numbered lines from a file

sed -e '10,15p;4p;s/.*// file | awk !/^$/{print $0} somefile'

Sorry but I dont speak urdu.. but I would go with

# warning windows double quotes perl -nle "BEGIN{map{$w{$_}++}map{/^(.*\d)-(.+)$/?$1..$2:$_}split /,/, +pop @ARGV}print if exists $w{$.}" FILENAME 1,2,4-6,11-13

++ 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.