3 ms·
`rm -f` ignores nonexistent files so you could omit the `if` to be concise.
by alainv 10y ago
`rm -f` ignores nonexistent files so you could omit the `if` to be concise.
- tristor 10y agoGood call. I was mainly using `-f` to suppress the prompt about deleting the file, but you're correct, it's unnecessary to have the if statement in this case.