Browse Source

Merge 188ca9ef3e into 9280d0e7ea

pull/393/merge
James Ononiwu 10 months ago
committed by GitHub
parent
commit
68cc713b79
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      README.md

+ 12
- 0
README.md View File

@@ -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))


Loading…
Cancel
Save