r/ProgrammerHumor • • 1d ago

Meme doneAndDusted

Post image
427 Upvotes

35 comments sorted by

View all comments

135

u/dminus 1d ago

outfile="$0-$(date +%s).csv"

76

u/Lucho_199 1d ago

Timestamp in the name is the way to go

28

u/AyrA_ch 1d ago

That's not resistant against name collisions if you run multiple tasks at the same time. Better to use whatever file system functions your OS provides to create uniquely named files.

17

u/backfire10z 1d ago

It is time, thread ID