M
mike
hi
i have a file like this:
2004nddjjf99jdlkdf <---- 99 is at character position 11 to 12
2004abcdefghijklnmnopqrstuvwxyz
2004ldfhanvsduhkjgndfnspqiekfnv
2003nmvkdmcnfjfbndmdkvndnmvkdbn
2004nddgdf99dkgfjs
i wanted to get the text in between the 2 lines that have the number
"99" at the
11th and 12th position.
i looked at FAQ ,
perl -ne 'print if /START/ .. /END/' file1 ...
how can i define the START and END such that it must check for
character position 11 and 12 to look for 99 ??
thanks.
i have a file like this:
2004nddjjf99jdlkdf <---- 99 is at character position 11 to 12
2004abcdefghijklnmnopqrstuvwxyz
2004ldfhanvsduhkjgndfnspqiekfnv
2003nmvkdmcnfjfbndmdkvndnmvkdbn
2004nddgdf99dkgfjs
i wanted to get the text in between the 2 lines that have the number
"99" at the
11th and 12th position.
i looked at FAQ ,
perl -ne 'print if /START/ .. /END/' file1 ...
how can i define the START and END such that it must check for
character position 11 and 12 to look for 99 ??
thanks.