3 ms·
sponge only writes the file once all input has been read, and - if the file already exists - tries to do the operation atomically by writing to a temporary file
by parenthephobia 10y ago
sponge only writes the file once all input has been read, and - if the file already exists - tries to do the operation atomically by writing to a temporary file and renaming it over the old file.