UK & world technology
Sign inJoin us
TechBlastTechnology. Unpacked.UK & world technology
← Latest news

From Dev.to

`find -delete` before `-name` deletes everything

This looks like it deletes one temp file. It deletes the whole directory, including the directory itself: mkdir demo touch demo/keep.txt demo/old.tmp find demo -delete -name '*.tmp' ls demo # ls: ca...

Read the full report at Dev.to ↗