Linux: Can I create directories that don’t exist while creating a new file?
- by deb
I can do mkdir messages
and then
touch messages/hello.txt
Is there a command that will do both - create the directory if it doesn't exist, and then the empty file?
something like: touch -p messages/hello.txt
Thanks in advance
-- Deb