Merge 188ca9ef3ea3635af2ed24454c412ca7f759be98 into 7d37069a361d3fd9f214480755f7969744e866fa

This commit is contained in:
James Ononiwu 2024-11-23 22:21:00 +05:30 committed by GitHub
commit 50a52c8db1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {} \; 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)) ##### Tool: [top](https://en.wikipedia.org/wiki/Top_(software))