in reply to Perl solution
Seriously, what problems do you have, what did you try, did you read the PerlMonks FAQ and not stumble over How do I post a question effectively? Hard to believe.
For a starter,
netstat -e | perl -ple 's/\s\s+/\t/' > file.csv
writes the output of netstat -e into a tab delimited csv file. You have to tweak the regular expression used in that snippet according to the spec.
What spec? Ah, uhm, wait, er...
*) Crank out Code
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl solution
by pilcrow (Sexton) on Jan 28, 2008 at 06:15 UTC | |
|
Re^2: Perl solution
by apotheon (Deacon) on Jan 28, 2008 at 03:21 UTC | |
by robot_tourist (Hermit) on Jan 28, 2008 at 15:49 UTC | |
|
Re^2: Perl solution
by Gavin (Archbishop) on Jan 30, 2008 at 16:33 UTC |