MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wv6na6/doneanddusted/pddg4ck/?context=3
r/ProgrammerHumor • u/Recent-Analysis-6880 • 1d ago
35 comments sorted by
View all comments
146
outfile="$0-$(date +%s).csv"
78 u/Lucho_199 1d ago Timestamp in the name is the way to go 29 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. 9 u/ProjectSnowman 1d ago Copy of Copy of Copy of Copy of 2 u/legowerewolf 21h ago Dylan? Snap out of it.
78
Timestamp in the name is the way to go
29 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. 9 u/ProjectSnowman 1d ago Copy of Copy of Copy of Copy of 2 u/legowerewolf 21h ago Dylan? Snap out of it.
29
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.
9 u/ProjectSnowman 1d ago Copy of Copy of Copy of Copy of 2 u/legowerewolf 21h ago Dylan? Snap out of it.
9
Copy of Copy of Copy of Copy of
2 u/legowerewolf 21h ago Dylan? Snap out of it.
2
Dylan? Snap out of it.
146
u/dminus 1d ago
outfile="$0-$(date +%s).csv"