port_check.awk (229B)
#!/bin/awk -f
BEGIN{
FS="│";
max_port = 0;
}
{
if($4 ~ /[0-9]+/) {
match($4, /[0-9]+/, port);
if (port[0] > max_port) {
max_port = port[0];
}
}
}
END{
print max_port;
}
Back (Current repo: terraform-mariadb-replica-homelab)A terraform homelab with mariadb and maxscale for my own understanding and learning.To clone this repository: git clone https://git.viktor1993.net/terraform-mariadb-replica-homelab.git |
| Log | Download | Files | Refs | README |
port_check.awk (229B)
#!/bin/awk -f
BEGIN{
FS="│";
max_port = 0;
}
{
if($4 ~ /[0-9]+/) {
match($4, /[0-9]+/, port);
if (port[0] > max_port) {
max_port = port[0];
}
}
}
END{
print max_port;
}