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