mirror of
https://github.com/YunoHost-Apps/adguardhome_ynh.git
synced 2024-09-03 18:06:23 +02:00
simpler sed
This commit is contained in:
parent
a74b43b268
commit
01b97d3694
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
You can use the following command to automatically give you a ready-to-use list:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -sL ip.guide/AS"$(curl -sL ip.guide | jq -s --indent 1 ".[].network.autonomous_system.asn")" | jq -s -j --indent 1 ".[].routes" | sed "/v4/d;/v6/d;/\],/d" | tr -d " [{]\",}"
|
curl -sL ip.guide/AS"$(curl -sL ip.guide | jq -s --indent 1 ".[].network.autonomous_system.asn")" | jq -s -j --indent 1 ".[].routes" | sed "/v.*:/d;/\],/d" | tr -d " [{]\",}"
|
||||||
```
|
```
|
||||||
|
|
||||||
The command asks your IP address to ip.guide, which returns the "Autonomous System" number, then the commands asks the IP ranges, then display it on your screen.
|
The command asks your IP address to ip.guide, which returns the "Autonomous System" number, then the commands asks the IP ranges, then display it on your screen.
|
||||||
|
|
Loading…
Add table
Reference in a new issue