mac下find命令的使用
在mac下面想查找某个文件夹下的所有.md
文件:
find -name '*.md'
在mac上报如下错误:
find: illegal option -- n
在stackoverflow上找到了答案(https://stackoverflow.com/questions/25840713/illegal-option-error-when-using-find-on-macos):
- mac上使用的是
bsd
,而linux上使用的是gnu
。 - bsd的find命令第一个参数必须指定目录路径,而gnu可以省略第一个参数
find . -name '*.md'
推荐阅读
- 开学第一天(下)
- 【故障公告】周五下午的一次突发故障
- Mac安装Chromedriver
- 生活随笔|好天气下的意外之喜
- MongoDB,Wondows下免安装版|MongoDB,Wondows下免安装版 (简化版操作)
- 汇讲-勇于突破
- Android中的AES加密-下
- 说的真好
- 放下心中的偶像包袱吧
- MAC安装Mongo