1
0
Fork 0

No fit in filename

main
Jeff Moe 2023-06-21 19:35:19 -06:00
parent 15b53a639c
commit bb8b73de98
4 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
diff -u data/classfd-ids.txt data/spacecruft-fit-ids.txt | \ diff -u data/classfd-ids.txt data/spacecruft-ids.txt | \
grep -v -e "+" -e "-" | \ grep -v -e "+" -e "-" | \
sed -e 's/ //g' > \ sed -e 's/ //g' > \
data/spacecruft-classfd-ids.txt data/spacecruft-classfd-ids.txt

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
diff -u data/classfd-ids.txt data/spacecruft-fit-ids.txt | \ diff -u data/classfd-ids.txt data/spacecruft-ids.txt | \
grep -e "^-" | \ grep -e "^-" | \
sed -e 's/-//g' > \ sed -e 's/-//g' > \
data/spacecruft-classfd-missing-ids.txt data/spacecruft-classfd-missing-ids.txt

View File

@ -6,5 +6,5 @@ mkdir -p "${DATADIR}"
cd "${DATADIR}" cd "${DATADIR}"
wget -O spacecruft-fit-sats.html "https://spacecruft.fit/sats/" wget -O spacecruft-sats.html "https://spacecruft.fit/sats/"

View File

@ -1,9 +1,9 @@
#!/bin/bash #!/bin/bash
grep 'folder.gif' data/spacecruft-fit-sats.html | \ grep 'folder.gif' data/spacecruft-sats.html | \
cut -f 7 -d ">" | \ cut -f 7 -d ">" | \
cut -f 1 -d "/" > \ cut -f 1 -d "/" > \
data/spacecruft-fit-ids.txt data/spacecruft-ids.txt
cat data/spacecruft-fit-ids.txt cat data/spacecruft-ids.txt