---
title: "grep 查找文件名含有中文汉字的文件"
author: "HEXLee"
date: "2013-03-02T09:53:29Z"
tags: []
categories: ["开源软件"]
slug: "grep"
draft: false
lastmod: "2013-03-02T10:25:47Z"
id: 1820237
url: "https://hexlee.iteye.com/blog/1820237"
---

网站目录下包含大量html文件和子目录，其中有不少文件和目录的名称中含有中文汉字。  
现希望能用shell脚本罗列出所有名称中含有中文的文件和目录，并统计一下总数。  
兄弟姐妹们，这个应该怎么搞？真心求解答

 

find . -type f | grep -P -r "\[\\x80-\\xFF]" | cat | wc -l