notes/Resources/dev/snippets/bash.md

14 lines
235 B
Markdown
Raw Normal View History

2022-02-22 11:27:27 +01:00
## Rename File extension
```bash
find /the/path -depth -name "*.js" -exec sh -c 'mv "$1" "${1%.js}.ts"' _ {} \;
```
#
## Find / Remove & Exclude
```bash
find . -name '*conflict*' -not -path "*node_modules*" -exec rm -rf {} \;
```