I know you can do mkdir to create a directory and touch to create a file, but is there no way to do both operations in one go?
mkdir
touch
i.e. if I wa
#!/bin/sh for f in "$@"; do mkdir -p "$(dirname "$f")"; done touch "$@"