I need to removed files in my folders that ends in .txt using ssh. This is what I have tried so far:
find /models/ -name *.txt" -type d -exec rm -rf {} \;
Inside these main folder model I have hundreds of subfolders with a file that ends in .txt and they need to be removed.
*.txt". Not sure if that's a typo here or... – Rob Wouters Jan 3 at 15:08