Compare commits
No commits in common. "fc88ab620078d778cc97cbc75e3e56b143a1ecfa" and "0abc2818e8185227de37f4e1c7c8c31011b75b68" have entirely different histories.
fc88ab6200
...
0abc2818e8
@ -20,7 +20,6 @@ recsel db.rec -q gpg
|
|||||||
recsel db.rec -e "title = 'ssh'"
|
recsel db.rec -e "title = 'ssh'"
|
||||||
recsel db.rec -e "title ~ 'ssh'"
|
recsel db.rec -e "title ~ 'ssh'"
|
||||||
recsel db.rec -e "title ~ 'bash'" -R title,wordcount
|
recsel db.rec -e "title ~ 'bash'" -R title,wordcount
|
||||||
recsel db.rec -m 1 -P content | less -R
|
|
||||||
```
|
```
|
||||||
|
|
||||||
# Style
|
# Style
|
||||||
|
@ -44,7 +44,6 @@ recset -f "$new_field" --delete $database
|
|||||||
|
|
||||||
- [Extended example](recfiles/extended.md)
|
- [Extended example](recfiles/extended.md)
|
||||||
- [Playing with board games data](recfiles/Board_Games.md)
|
- [Playing with board games data](recfiles/Board_Games.md)
|
||||||
- [Playing with IP addresses](recfiles/IP_ASN.md)
|
|
||||||
- [Fixes](recfiles/recfixes.md)
|
- [Fixes](recfiles/recfixes.md)
|
||||||
|
|
||||||
# Resources
|
# Resources
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
---
|
|
||||||
title: "IP Addresses with Recfiles"
|
|
||||||
tags: [ "data", "recfiles", "games" ]
|
|
||||||
requires: "Recfiles"
|
|
||||||
---
|
|
||||||
|
|
||||||
## Download the Database
|
|
||||||
|
|
||||||
Download the csv data, and separate the ipv4 data from the ipv6.
|
|
||||||
|
|
||||||
```sh
|
|
||||||
curl -Lo ips.zip 'https://www.kaggle.com/api/v1/datasets/download/ipinfo/ipinfo-country-asn'
|
|
||||||
unzip -p ips.zip country_asn.csv | csv2rec | recsel -e "start_ip ~ '\.'" > ipv4.rec
|
|
||||||
unzip -p ips.zip country_asn.csv | csv2rec | recsel -e "start_ip ~ '::'" > ipv6.rec
|
|
||||||
```
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user