I know mkdir -p
will make directories recursively.
I know touch
will create a file recursively.
I know mkdir -p foo/bar; touch foo/bar/baz.txt
will work, but is there a flag or something for touch
so I can one-step this?
I'm sure this question has been asked before a million times but for some reason I'm coming up empty.