Skip to content

Instantly share code, notes, and snippets.

@ppp0
Created June 14, 2016 14:13
Show Gist options
  • Save ppp0/a39d2231d7f196681f76f458b886ac0e to your computer and use it in GitHub Desktop.
Save ppp0/a39d2231d7f196681f76f458b886ac0e to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in $(find ~ -ipath '*/.vagrant.d'); do
for j in $(ls -1 "${i}"); do
if [ "${j}" != 'boxes' ]; then
rm -rf "${i}/${j}"
fi
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment