Reputation
4,653
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
7 18
Newest
 Revival
Impact
~208k people reached

Mar
9
revised nagios SSL handshake
fix dh 1024 instructions
Mar
8
revised nagios SSL handshake
added 145 characters in body
Mar
8
revised nagios SSL handshake
deleted 933 characters in body
Mar
8
revised nagios SSL handshake
deleted 933 characters in body
Mar
8
answered nagios SSL handshake
Mar
8
revised alternative to “netstat -s”
added 24 characters in body
Mar
8
answered alternative to “netstat -s”
Mar
4
comment How to print certain columns by name?
The 2nd example does not output the columns in the expected order, for (i in out) has no inherent ordering. gawk offers PROCINFO["sorted_in"] as a solution, iterating over the index with a for( ; ; ) is probably better.
Mar
2
revised Compact bash prompt when using a directory tree / filename
typos & clarifications
Feb
29
answered Compact bash prompt when using a directory tree / filename
Feb
19
comment alternative to “netstat -s”
This doesn't answer the question, the OP points out correctly that ss -s does not provide data that netstat -s provides. This also contains misinformation: /proc is the kernel interface for this and that's exactly how ss obtains much of the data: strace -e trace=file,read /sbin/ss -s .
Feb
19
comment alternative to “netstat -s”
/proc/net/snmp contains most of the data and /proc/net/netstat contains the rest. Sadly you'll need to read net-tools statistics.c source to determine all the name mappings, though most are quite obvious.
Feb
19
awarded  Revival
Feb
11
reviewed Edit crontab exclude specific date only
Feb
11
revised crontab exclude specific date only
Percentage signs escaping
Feb
5
comment Split single string into character array using ONLY bash
[[ $string =~ ${string//?/(.)} ]] will set BASH_REMATCH[] as required, see my answer to the question Peter Mortensen links to for an explanation.
Jan
28
awarded  Yearling
Dec
14
comment bind failure, address in use: Unable to use a TCP port for both source and destination?
ip_local_port_range is a large hammer to be carefully swung on a busy server. The contemporary (post linux-2.6.35 or so) way with ip_local_reserved_ports allows enumerating the troublesome ports.
Dec
10
comment rotate element of array in shell script
In bash-4.2, more generally (and less legibly): Array=("${Array[-1]}" "${Array[@]:0:${#Array[@]}-1}")
Dec
8
comment Bash script parsing argument with quotes
exactly, quotes don't nest...