Skip to content

Instantly share code, notes, and snippets.

@Oddly
Created April 29, 2024 14:49
Show Gist options
  • Save Oddly/40b5121935e6da80c5100734672be0f6 to your computer and use it in GitHub Desktop.
Save Oddly/40b5121935e6da80c5100734672be0f6 to your computer and use it in GitHub Desktop.
Oneliner to delete broken symlinks
find "/directory" -maxdepth 1 -xtype l -print -delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment