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”.
git remote rename origin upstream
git remote add origin NEW_REMOTE_REPOSITORY
git push origin master
struct | class |
Value type | Reference type |
Cannot inherit or be inherited | Has inheritance |
On the Stack | On the heap |
Faster | Slower |
No memory leaks | Potential memory leaks |
Deep copies | |
True immutability | |
Threadsafe | |
Works with Objective-C code |
Use struct as much as possible.
I guess Swift learns this from C#.
Java doesn’t have struct keyword.