1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/bash set -eu mkdir -p tmp/src rm -rf tmp/*.md for f in src/"${1:-\"\"}"*.md do cargo run --bin convert_quotes < "$f" > "tmp/$f" mv "tmp/$f" "$f" done