in reply to extract (a range of) numbered lines from a file
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*
|
|---|