浏览代码

Merge 188ca9ef3e into 945e21b6a4

undefined
James Ononiwu 1年前
committed by GitHub
父节点
当前提交
e734e014e5
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. +12
    -0
      README.md

+ 12
- 0
README.md 查看文件

@@ -2164,6 +2164,18 @@ find . -depth -name '*test*' -execdir bash -c 'mv -v "$1" "${1//foo/bar}"' _ {}
find / \( -perm -4000 -o -perm -2000 \) -type f -exec ls -la {} \;
```

###### Recursively find/replace files extension ext1 with ext2

```bash
find . -name "*.ext1" | while read i; do mv "$i" "${i%.ext1}.ext2"; done
```

###### Recursively find/replace links extension ext1 with ext2 in files with extension ext

```bash
find . -name '*.ext' -exec sed -i 's/\.ext1/\.ext2/g' "{}" \;
```

___

##### Tool: [top](https://en.wikipedia.org/wiki/Top_(software))


正在加载...
取消
保存