Linux 常用命令
来源:互联网 发布:手机软件显示网络异常 编辑:程序博客网 时间:2024/05/29 13:41
1、find 查找多类型的文件:
find . -regex '.*\.txt\|.*\.doc\|.*\.mp3'find . -name "a.html" -name "b.html"
find 排除某类文件:
find . -type f ! -name "*.html" find . -type f ! -name "*.html" -type f ! -name "*.php" -type f ! -name "*.svn-base" -type f ! -name "*.js" -type f ! -name "*.gif" -type f ! -name "*.png" -type f ! -name "*.cpp" -type f ! -name "*.h" -type f ! -name "*.o" -type f ! -name "*.jpg"
2、xargs命令把从stdin接受到的数据重新格式化。
$cat example.txt1 2 3 4 5 67 8 9 1011 12
$cat example.txt | xargs1 2 3 4 5 6 7 8 9 10 11 12
$cat example.txt | xargs –n 31 2 34 5 67 8 910 11 12
find . –type f -regex '.*\.py\|.*\.c\|.*\.h\|.*\.cc' –print0 | xargs -0 wc -l
3、echo
echo -n 不换行输出echo -e 处理特殊字符
4、查看linux静态库*.a中的函数和文件,这对某些时候是非常有用的,比如我现在正在尝试替换掉appro的2a算法库,这就需要了解appro的2a结构
windows下
dumpbin /exports libxxx.a
linux 下
nm -g --defined-only libxxx.a
0 0
- 【linux 常用命令】常用命令整理
- linux常用命令
- Linux常用命令
- LINUX 常用命令
- linux常用命令
- Linux 常用命令
- Linux 常用命令
- Linux常用命令
- LINUX常用命令
- Linux 常用命令
- linux常用命令
- Linux常用命令
- Linux常用命令
- Linux 常用命令
- Linux常用命令
- Linux 常用命令
- Linux 常用命令!
- Linux 常用命令
- 大数据时代来了!<财经郎眼>20150601
- 一个简单的CMake示例
- 设计模式:常见类的关系小结
- IOS开发中一些类的关系继承图
- 移动HTML5前端性能优化指南
- Linux 常用命令
- 第二章第11题
- hdu 1374 求三角形外接圆的半径
- memcache
- UIScrollerView和UITableView下拉刷新,上拉加载更多
- 黑马程序员_java复习笔记1-面向对象
- 【转】hash_map 与 hash_set 详解
- 不同JS环境use strict对重复属性处理的差异
- 好题flag--(6.7)