4 ms·
Shell scripting: https://pilabor.com/blog/2021/04/shell-scripting-cheatsheet/ https://pilabor.com/blog/2021/04/shell-scripting-cheatsheet/ Markdown: https://pi
by sandreas 4y ago
Shell scripting: https://pilabor.com/blog/2021/04/shell-scripting-cheatsheet/ https://pilabor.com/blog/2021/04/shell-scripting-cheatsheet/
Markdown: https://pilabor.com/blog/2021/04/markdown-cheatsheet/ https://pilabor.com/blog/2021/04/markdown-cheatsheet/
- johnchristopher 4y ago> mkdir if not exists [ -d "${DIR}" ] || (mkdir -p "${DIR}") No need to check when using "-p".
- sandreas 4y agoYou are absolutely right :-) I think, that this is a relict, since I personally use an alias for mkdir: alias mkdir='mkdir -p' Thank you