Added find bash script for file extensions
parent
cc848642dc
commit
e2fc27ac66
|
@ -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
|
find . -name "*.ext1" | while read i; do mv "$i" "${i%.ext1}.ext2"; done
|
||||||
```
|
```
|
||||||
|
|
||||||
###### Recursively find/replace link extension ext1 with ext2 in files of extension ext
|
###### Recursively find/replace link extension ext1 with ext2 in files with extension ext
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
find . -name '*.ext' -exec sed -i 's/\.ext1/\.ext2/g' "{}" \;
|
find . -name '*.ext' -exec sed -i 's/\.ext1/\.ext2/g' "{}" \;
|
||||||
|
|
Loading…
Reference in New Issue