find *.tar.gz -exec tar zxvf '{}' \;
//查找当前目录下的.tar.gz 的文件的 并发送给后面的命令执行
find . -maxdepth 1
//查找当前目录下的文件并显示出来。
find . -maxdepth 1 -type d
//查找当前目录下的文件

find . -maxdepth 1 -type d -exec cp -r '{}' /home/android/autonavi-project/ ';'
//查找当前目录 并拷贝到某个位置

find . -maxdepth 1 -type d -exec tar zcvf '{}'.tar.gz '{}' ';'
//对当前目录压缩后放到当前目录。
// -maxdepth 0表示先显示现在的目录再显示其他的。
find . -maxdepth 1 -type d -exec tar zcvf /test2/'{}'.tar.gz '{}' ';'
//对当前目录压缩后放到指定(/test2/)。

find /test -path /test/a -prune -o -name "*" -print
//查找test目录下,显示除了a文件夹之外的文件

find /test2 -path /test2/a.tar.gz -prune -o -name "*" -print
//查找test2目录下的除了 a.tar.gz 的所有的文件和目录。

find /test2 -path /test2/..tar.gz -prune -o -name "*.tar.gz" -exec tar zxvf '{}' \;
//查找test2目录下的除了..tar.gz 的所有.tar.gz的进行解压。

find /test2 -path /test2/. -prune -o -name "*" -exec tar zcvf '{}'.tar.gz '{}' \;
//查找test2目录下的除了.这个目录外的所有目录进行压缩。

//本文件的终极目标,一个目录下的目录进行压缩。不对当前目录进行压缩。并且不对OUT文件进行压缩。
find . -mindepth 1 -maxdepth 1 -path "./out" -prune -o -type d -exec tar zcvf '{}'.tar.gz '{}' ';'
//

最新文章

  1. 【转】 FineBI:自助式BI工具打造业务分析的“快与准”
  2. sql 知识点系统汇总
  3. Windows Phone 十九、罗盘
  4. __PUBLIC__ 路径更改
  5. windows.open()、close()方法详解
  6. DEDECMS中,channelartlist标签
  7. 选择器,$("A+B") 和$("A~B") 的理解
  8. 2008r2 显示桌面图标
  9. POJ 3654 & ZOJ 2936 & HDU 2723 Electronic Document Security(模拟)
  10. 一、Solr的相关概念了解
  11. 洛谷P1171 售货员的难题【状压DP】
  12. Spring中你可能不知道的事(二)
  13. pycharm opencv4.0安装使用
  14. hadoop环境配置
  15. HTML页面本地正常,部署到服务器稍微异常解决方案
  16. zend studio mac
  17. 自定义SharePoint2013 master page
  18. SVN提交报错(SVN的bug)
  19. Spring IOC(四)FactoryBean
  20. zabbix自定义web检测

热门文章

  1. Bounce 弹飞绵羊
  2. js-字符串函数
  3. BZOJ3963: [WF2011]MachineWorks
  4. MySQL Replicationation基础
  5. Storm中-Worker Executor Task的关系
  6. LeetCode OJ 48. Rotate Image
  7. wuzhi 五指 数据库仿 thinkphp
  8. SharePoint2013基于Form(FBA)的AD认证登陆
  9. 手动编译生成apk
  10. linux 非root用户 ssh 免密码登录