From 2d5c1eac452e005eea4d23e004d3a47ac37e5a91 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Mon, 1 Jan 2024 07:22:39 +0100 Subject: [PATCH] refactor --- doc/ADMIN.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/ADMIN.md b/doc/ADMIN.md index 30e7ad6..d63bf81 100644 --- a/doc/ADMIN.md +++ b/doc/ADMIN.md @@ -93,7 +93,7 @@ It should look like the list in the previous section. You can use the following command to automatically give you a ready-to-use list: ```bash -AS="$(curl -sL ip.guide | jq -s --indent 1 ".[].network.autonomous_system.asn")" | curl -sL ip.guide/AS"$AS" | jq -s --indent 1 ".[].routes" | +curl -sL ip.guide/AS"$(curl -sL ip.guide | jq -s --indent 1 ".[].network.autonomous_system.asn")" | jq -s --indent 1 ".[].routes" | sed "/\[/d;/{/d;/]/d;/}/d;s/ \"//;s/\",//;s/\"//" ```