replaced - with * for lists. i actually prefer - but if gemini is * then * it is.
for file in *.gmi; do sed -i 's|^- |* |g' "$file"; done
change footer by adding text before my target line. it works too:-)
#!/bin/bash # footfix.sh # add: # --- # => gemini://gemini.mingmengtou.org/index.gmi return to gemini.mingmengtou.org index page. # --- # to every .gmi before: neil.gemini@ # before="neil.g" dashes="---" indexlink="=> gemini://gemini.mingmengtou.org/index.gmi return to gemini.mingmengtou.org index page." # echo $1 sed -i "s|^$before|\n$dashes\n$indexlink\n$dashes\n$before|" $1
i ran it in bash loop:
for file in *.gmi; do ./footfix.sh "$file"; done
it worked:-}
=> return to gemini.mingmengtou.org index page.
neil.gemini@mingmengtou.org
content licensed CC-BY-SA 4.0 unless stated.
=> creative commons licence. This content has been proxied by September (ba2dc).Proxy Information
text/gemini;lang=en-GB