comments
parent
84be057e02
commit
cf3060c7c8
@ -1,13 +1,20 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Download the text of a pad
|
||||||
wget https://pad.xpub.nl/p/radioworm-20231107/export/txt -O radioworm-20231107.pad.txt
|
wget https://pad.xpub.nl/p/radioworm-20231107/export/txt -O radioworm-20231107.pad.txt
|
||||||
|
|
||||||
|
# convert the pad to a CSV
|
||||||
python3 scripts/split-urls-csv.py < radioworm-20231107.pad.txt | \
|
python3 scripts/split-urls-csv.py < radioworm-20231107.pad.txt | \
|
||||||
python3 scripts/csv-add-end.py > radioworm-20231107.csv
|
python3 scripts/csv-add-end.py > radioworm-20231107.csv
|
||||||
|
|
||||||
|
# Filter the CSV with a keyword
|
||||||
csvgrep -c text -m "#intro" radioworm-20231107.csv > radioworm-20231107.intro.csv
|
csvgrep -c text -m "#intro" radioworm-20231107.csv > radioworm-20231107.intro.csv
|
||||||
|
|
||||||
|
# Generate a shell script
|
||||||
python3 scripts/csv-to-melt.py < radioworm-20231107.intro.csv > edit.sh
|
python3 scripts/csv-to-melt.py < radioworm-20231107.intro.csv > edit.sh
|
||||||
|
|
||||||
|
# Get the source
|
||||||
wget https://hub.xpub.nl/chopchop/worm/xpub/radioworm-20231107.ogg
|
wget https://hub.xpub.nl/chopchop/worm/xpub/radioworm-20231107.ogg
|
||||||
|
|
||||||
|
# Perform the edit
|
||||||
bash edit.sh
|
bash edit.sh
|
||||||
|
Loading…
Reference in New Issue