"in its original form" - i was expecting to see something like this: server1 ip server2 ip server3 ip etc..
I was going to do another pattern match on the string $text after getting it in the string.
perl -e 'undef $/; my $text=<>; 1 while $text =~ s/\b(\w+\d+)\s*\1\b/$ +1/gi; pring $text; $/="\n";' list
In reply to Re^2: $/ usage
by mimiandi
in thread $/ usage
by mimiandi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |