netstat -e | perl -ple 's/\s\s+/\t/' > file.csv
Very likely an intended g modifier is missing from that s///. Of course, without a problem specification, who can say for sure that the g is needed? :)
-MikeIn reply to Re^2: Perl solution
by pilcrow
in thread Perl solution
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |