Find files with illegal windows characters in the name on Linux

后端 未结 3 792
清酒与你
清酒与你 2020-12-08 09:26

I have a projects on my Linux box that contains file with characters that are considered illegal/reserved in Windows (http://msdn.microsoft.com/en-us/library/aa365247%28VS.8

3条回答
  •  抹茶落季
    2020-12-08 09:40

    fnmatch pattern allow you to specify that characters in [] as follow:

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

提交回复
热议问题