mirror of
https://github.com/trimstray/the-book-of-secret-knowledge.git
synced 2025-07-28 08:02:31 +02:00
Merge 188ca9ef3ea3635af2ed24454c412ca7f759be98 into 7d37069a361d3fd9f214480755f7969744e866fa
This commit is contained in:
commit
50a52c8db1
12
README.md
12
README.md
@ -2152,6 +2152,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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user