MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wv6na6/doneanddusted/pd97q9y/
r/ProgrammerHumor • u/Recent-Analysis-6880 • Oct 01 '26
36 comments sorted by
View all comments
162
outfile="$0-$(date +%s).csv"
87 u/Lucho_199 Oct 01 '26 Timestamp in the name is the way to go 30 u/AyrA_ch Oct 01 '26 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. 20 u/backfire10z Oct 02 '26 It is time, thread ID 13 u/ProjectSnowman Oct 02 '26 Copy of Copy of Copy of Copy of 2 u/legowerewolf Oct 02 '26 Dylan? Snap out of it. 7 u/dminus Oct 01 '26 I really just can't
87
Timestamp in the name is the way to go
30 u/AyrA_ch Oct 01 '26 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. 20 u/backfire10z Oct 02 '26 It is time, thread ID 13 u/ProjectSnowman Oct 02 '26 Copy of Copy of Copy of Copy of 2 u/legowerewolf Oct 02 '26 Dylan? Snap out of it. 7 u/dminus Oct 01 '26 I really just can't
30
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.
20 u/backfire10z Oct 02 '26 It is time, thread ID 13 u/ProjectSnowman Oct 02 '26 Copy of Copy of Copy of Copy of 2 u/legowerewolf Oct 02 '26 Dylan? Snap out of it. 7 u/dminus Oct 01 '26 I really just can't
20
It is time, thread ID
13
Copy of Copy of Copy of Copy of
2 u/legowerewolf Oct 02 '26 Dylan? Snap out of it.
2
Dylan? Snap out of it.
7
I really just can't
View all comments
162
u/dminus Oct 01 '26
outfile="$0-$(date +%s).csv"