Hacker Newsnew | past | comments | ask | show | jobs | submitlogin



> mkdir if not exists

  [ -d "${DIR}" ] || (mkdir -p "${DIR}")
No need to check when using "-p".


You are absolutely right :-) I think, that this is a relict, since I personally use an alias for mkdir:

  alias mkdir='mkdir -p'
Thank you




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: