Skip to content

Instantly share code, notes, and snippets.

@DexterHaslem
Created August 5, 2022 21:45
Show Gist options
  • Save DexterHaslem/24b2f68de62073ac8b4ed2ad3a6576f5 to your computer and use it in GitHub Desktop.
Save DexterHaslem/24b2f68de62073ac8b4ed2ad3a6576f5 to your computer and use it in GitHub Desktop.
#!/usr/bin/fish
set ext ".demo"
set prev (date -d "-1 month" +%Y-%m)
cd ~/cdserver/demos/server
mkdir -p $prev
mv $prev*$ext $prev
# cron it
# 0 0 1 * * fish organize-demos.fish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment