🖥

How to make file with touch without error on not existence deep direct

2019/12/03に公開

settiing

execute on your console bellow command
OR
register to ~/.zshrc ~/.bashrc

function touchp() { mkdir -p $(dirname "$1"); touch "$1"; }

execute

touchp ~/too/deep/dir/dir/dir/file.txt

Original by Github issue

https://github.com/YumaInaura/YumaInaura/issues/2802

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

https://line.me/ti/g2/eEPltQ6Tzh3pYAZV8JXKZqc7PJ6L0rpm573dcQ

Twitter

https://twitter.com/YumaInaura

公開日時

2019-12-03

Discussion