Well, we can't tell you that without seeing a sample file with more than one traceroute in it. But I suspect you could split the records on something, yes. For instance, splitting your file on the string "Tracing route to" looks like it would probably break the file into chunks containing no more than one trace each.
Aaron B.
Available for small or large Perl jobs; see my home node.
In reply to Re^3: Writing a new file in Perl
by aaron_baugher
in thread Writing a new file in Perl
by maheshkumar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |