blog-versions/functions.bash
Danila Fedorin 6f29015422 Set up a mostly-default project with BackstopJS
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2025-03-31 00:42:01 -07:00

4 lines
262 B
Bash

function cleanurls { for result in $(find . -name "result-*"); do; (cd $result; python3 ../chatgpt-fix-root-URLs.py); done; }
function htmls { find -s result-$1 -name "*.html" | sed "s|^result-$1/||"; }
function commonhtmls { comm -12 <(htmls $1) <(htmls $2); }