use strict; use warnings; open(FH,"data"); foreach(<FH>) { print $_; if ( $_ =~ m/^ip address/) {print $_;} }
In reply to Re: How to duplicate lines
by ungalnanban
in thread How to duplicate lines
by ddrew78
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |