Skip to content

Instantly share code, notes, and snippets.

View dusanbrankov's full-sized avatar

Dušan Brankov dusanbrankov

View GitHub Profile
@dusanbrankov
dusanbrankov / mkf.bash
Last active February 18, 2025 19:11
Bash function to create directories and files in one command
# Create directories and files in one command
#
# Example:
# mkf dir1/file1.{txt,doc,html} dir1/dir2/file2.{txt,doc,html}
#
# Result:
# dir1/
# ├── dir2
# │   ├── file2.doc
# │   ├── file2.html