mirror of
https://github.com/trimstray/the-book-of-secret-knowledge.git
synced 2025-02-03 10:30:02 -05:00
Added find bash script for file extensions
- signed-off-by: James Ononiwu <jamesononiwu@gmail.com>
This commit is contained in:
parent
e2fc27ac66
commit
188ca9ef3e
@ -2154,7 +2154,7 @@ find / \( -perm -4000 -o -perm -2000 \) -type f -exec ls -la {} \;
|
||||
find . -name "*.ext1" | while read i; do mv "$i" "${i%.ext1}.ext2"; done
|
||||
```
|
||||
|
||||
###### Recursively find/replace link extension ext1 with ext2 in files with extension ext
|
||||
###### Recursively find/replace links extension ext1 with ext2 in files with extension ext
|
||||
|
||||
```bash
|
||||
find . -name '*.ext' -exec sed -i 's/\.ext1/\.ext2/g' "{}" \;
|
||||
|
Loading…
x
Reference in New Issue
Block a user