- or download this
c:\> perl -n -e "print if /^PARTNAME/ && /PARTNAME$/ && $last; $last =
+ /^xyzdf/ && /xyzdf$/ ? $_ : ''" file1>file2
# file2:
#PARTNAMEhjjhhjhjkjkjkjkjPARTNAME
#PARTNAMEhjjh88888888888jkjkjkjkjPARTNAME
#PARTNAMEhjjh8888iiiiiiiiiiiii888jkjkjkjkjPARTNAME
- or download this
xyzdf
PARTNAMEXXXXPARTNAME
- or download this
c:\> perl -n -e "print if /^PARTNAME/ && /PARTNAME$/ && $last; $last =
+ /^xyzdf/ && /.xyzdf$/ ? $_ : ''" file1>file2