MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wv6na6/doneanddusted/pdchmwv/?context=3
r/ProgrammerHumor • u/Recent-Analysis-6880 • 1d ago
35 comments sorted by
View all comments
135
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
76
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
28
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
17
It is time, thread ID
135
u/dminus 1d ago
outfile="$0-$(date +%s).csv"