you are viewing a single comment's thread
view the rest of the comments
[–] 5 points 1 year ago (2 children)

The fear is real but in 30 years of unix and linux work, i've never actually deleted anything I didn't mean to.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 6 points 1 year ago

    The first time I accidentally lost a number of files was when I wrote a script to rename some images from the format ddmmyyyy to yyyy-mm-dd. But I put the parsing and saved the variable only once outside the for loop, so all files ended up overwriting each other. Learnt my lesson to run untested scripts on files without a back up

  • source
  • parent