News for hackers. Stuff that matters.
Re:Why does the New menu even exist for creating new empty f... by User23 on Tuesday July 20, 2021 @08:24PM (#27900884)
Touch is the purest old school Unix way to say this.
Re:Why does the New menu even exist for creating new empty f... by dredmorbius on Wednesday July 21, 2021 @04:06PM (#27911423)
Right.

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.