Skip to content

Instantly share code, notes, and snippets.

@ascendbruce
Created March 6, 2018 08:40
Show Gist options
  • Save ascendbruce/2f95e88588b88f1b8bc558f74f951e51 to your computer and use it in GitHub Desktop.
Save ascendbruce/2f95e88588b88f1b8bc558f74f951e51 to your computer and use it in GitHub Desktop.

Revisions

  1. ascendbruce created this gist Mar 6, 2018.
    4 changes: 4 additions & 0 deletions find_illegal_windows_filename.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    # Source: https://stackoverflow.com/questions/19008614/find-files-with-illegal-windows-characters-in-the-name-on-linux
    # reserved characters for filename on windows: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx

    find . -name '*[<>:/\\|?*]*'