apparently does what you want:perl -lne 'print if /^process/ .. /^end process/ and not /^process/ and not /^end process/' process lkhls ksjhfk end process process kfhls kfh end process
ksjhfk kfh
In reply to Re^3: read multi lines of a file in perl
by massa
in thread read multi lines of a file in perl
by sharan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |