2 ms·
Touch is the purest old school Unix way to say this.
by User23 5y ago
Touch is the purest old school Unix way to say this.
- dredmorbius 5y agoRight. I'll often use touch just that way, in part because I can also apply standard features / functions in the process, particularly a datestamp: touch <mnemonic-$(datestamp)> Where datestamp is a bash function: datestamp () { date +%Y%m%d; } In several scripts / tools, the title (and other metadata) are automatically generated and added, with sanity checks for characters, casing (lowercase preferred), and tokenisation (usually '-' between words, '_' between elements, and '--' between repeated elements, e.g., multiple authors. The results can be longish, but descriptive, filenames. With a low collision probability.