random/touch2

6 lines
116 B
Bash

#!/bin/sh
# It makes the parent folders (if needed) while touch-ing.
mkdir -p "$(dirname "$1")" &&
touch "$1"