Skip to content

Instantly share code, notes, and snippets.

@Fusion86
Created March 25, 2024 16:43
Show Gist options
  • Save Fusion86/8c5409602f5dc2348bdf936899ad9da8 to your computer and use it in GitHub Desktop.
Save Fusion86/8c5409602f5dc2348bdf936899ad9da8 to your computer and use it in GitHub Desktop.
#!/usr/bin/bash
find . -name $'*\n*' -exec rename -n 's/\n//g' {} \;
@Fusion86
Copy link
Author

Remove the -n to apply the rename action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment