find查找

find查找挺有用的,分享下哈,知道的同学就无视吧:)
find ./ -maxdepth 1 -mtime -1 -type d -ls
这句话的意思是查找当前目录下(./)不递归子目录(-maxdepth 1)一天内修改过的(-mtime -1)目录(-type d),以ls的方式显示出来(-ls)


根据文件内容查找 文件 find . -type f -name "*.*" | xargs grep "a"

猜你喜欢

转载自wangqiaowqo.iteye.com/blog/2254202