3 ms·
Couldn't you just append null to a given filepath to get the same result, or am I misguidedly assuming that >> creates files that don't exist?
by jeeva 10y ago
Couldn't you just append null to a given filepath to get the same result, or am I misguidedly assuming that >> creates files that don't exist?
- ygra 10y agoInteresting idea, but type nul >> file doesn't change the metadata, perhaps because nothing was written. But yes, it would at least not destroy files.