Created
September 8, 2022 10:54
-
-
Save kasir-barati/bf022bc96f51ed351c8fc3667eb247b3 to your computer and use it in GitHub Desktop.
A custom touch command to create parent directories and file too.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir -p "$(dirname "$1")" && touch "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment