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
|
I can do:
and then:
Is there a command that will do both - create the directory if it doesn't exist, and then the empty file? Something like:
| ||||
|
feedback
|
|
Not with anything in coreutils, but here's a bash function for that:
| |||
|
feedback
|