Skip to content

Instantly share code, notes, and snippets.

@czekaj
Created February 23, 2019 00:37
Show Gist options
  • Save czekaj/b0906c41ee3883d83e2ce24443836dd6 to your computer and use it in GitHub Desktop.
Save czekaj/b0906c41ee3883d83e2ce24443836dd6 to your computer and use it in GitHub Desktop.
Synology NAS has filename limits for encrypted shares. If the name of a file has more than 143 characters it will fail the write operation. This short script will let you find all these files.
#!/bin/bash
find . -maxdepth 15 | perl -nle'print if m{\/[^\/]{143,}[^\/]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment