Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
alainv
· 10y ago · 0 comments
`rm -f` ignores nonexistent files so you could omit the `if` to be concise.
Comments
[–]
tristor
10y ago
Good 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.