Shooting yourself in the foot
In C it’s extremely easy :)
Also, mv
and rm
commands. I once had a bunch of pngs named 1.png
, 2.png
, etc. But the numbering was in the wrong order, so I wrote a script to fix that:
|
|
You can easily spot where it shot me in the foot. More than a half of the pngs were gone 🙂👍. Should’ve used a separate folder, renaming in-place is dangerous.