@mcc This inspired me to write and test a somewhat robust shellscript function for inclusion in ~/.shrc or ~/.bashrc:
touchp() { for file in "$@"; do mkdir -p "$( dirname "$file" )" && touch "$file"; done; }
@nabijaczleweli @mcc For (a): Today I learned. Thank you. https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_04