in reply to Re: simple question about printing vars
in thread simple question about printing vars
thanks, so as far as I understand using FILE descriptor is the best solution, right?
as for awk, uniq and sort bash commands, what is the equivalent in perl for that functions, or should I use regexp?
for example: I need to sort IPs from netstat command, look:# netstat -ntu | egrep 'udp|tcp' | awk '{print $4}' | sort | uniq -c | + sort -nr 17 24.13.201.116:80 1 44.43.121.146:22
how can I do the same using just perl functions?
Is it better to use perl native functions for such purpose instead of calling external shell commands?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: simple question about printing vars
by choroba (Cardinal) on Nov 03, 2011 at 13:40 UTC | |
by httpd (Novice) on Nov 03, 2011 at 13:49 UTC | |
|
Re^3: simple question about printing vars
by reisinge (Hermit) on Nov 03, 2011 at 14:48 UTC | |
by httpd (Novice) on Nov 03, 2011 at 16:02 UTC |