notes/Resources/dev/snippets/bash.md
2023-05-04 13:46:51 +00:00

229 B

Rename File extension

find /the/path -depth -name "*.js" -exec sh -c 'mv "$1" "${1%.js}.ts"' _ {} \;

Find / Remove & Exclude

find . -name '*conflict*' -not -path "*node_modules*" -exec rm -rf {} \;