# This script presumes that all source photos are in a tsf/ subdirectory, and all renamed photos should go in a stats/ directory. # Because both the TSF and the STATS player-keys are Global Player Keys, you can run these commands for directories filled # with photos from any league. # To run the script in "test mode" without actually creating new files, simply remove the " | bash -" string from the end. sed 's/^/cp -p "tsf\/xt.tsf.photo-/;s/,/.jpg" "stats\/xt.stats.photo-/;s/$/.jpg";/' < tsf-stats-global-mapping.csv | bash -