Skip to content

Instantly share code, notes, and snippets.

@solnic
Created December 4, 2012 09:34
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save solnic/4202193 to your computer and use it in GitHub Desktop.
Save solnic/4202193 to your computer and use it in GitHub Desktop.
Remove all rubies older than given date
DATE=2012-06-01
for version in `find $rvm_path/rubies/ -mindepth 1 -maxdepth 1 -type d -not -newermt $DATE | cut -d / -f 7`; do rvm remove $version; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment