From f996b2195b3f64e92f2a5c909528ecc234b0ddac Mon Sep 17 00:00:00 2001 From: kev Date: Fri, 23 Feb 2024 18:15:20 +0800 Subject: [PATCH] update memgraph --- memgraph/example/dnslookup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memgraph/example/dnslookup b/memgraph/example/dnslookup index a72714b..58e29a4 100755 --- a/memgraph/example/dnslookup +++ b/memgraph/example/dnslookup @@ -2,7 +2,7 @@ HOST=${1:?DOMAIN or IP is empty} -docker exec -i memgraph_memgraph_1 mgconsole -output-format=csv <<- _CQL_ | sed -e 's/"//g' | tail -n +2 | tr '[],[]' ' ' | shuf | gawk -f /dev/fd/3 3<<- "_AWK_" | column -t -i1 -p2 -r3 -H1,2 | sed 's/─/& /' +docker exec -i memgraph_memgraph_1 mgconsole -output-format=csv <<- _CQL_ | sed -e 's/"//g' | tail -n +2 | tr '[],[]' ' ' | gawk -f /dev/fd/3 3<<- "_AWK_" | column -t -i1 -p2 -r3 -H1,2 | sed 's/─/& /' MATCH p=(n)-[*]->(m) WHERE any(n in nodes(p) where n.name = '$HOST') AND not exists(()-->(n)) AND not exists((m)-->()) UNWIND nodes(p) AS nn