Delete all txt files:
find ~/testFolder/*.txt -user @USERNAME -exec rm {} \;
Note, the semicolon is necessary.
Delte all files and directories:
find ~/testFolder/ -user @USERNAME -exec rm -rf {} \;
But be careful using “-rf”.
A blog about coding
Delete all txt files:
find ~/testFolder/*.txt -user @USERNAME -exec rm {} \;
Note, the semicolon is necessary.
Delte all files and directories:
find ~/testFolder/ -user @USERNAME -exec rm -rf {} \;
But be careful using “-rf”.