dir=/path/to/dir; [ ! -e $dir ] && mkdir -p $dir
※エラー出力をただ握りつぶしたい場合は下記の書き方のほうがシンプルでした。
mkdir -p /path/to/dir 2>/dev/null
We'll deliver articles that match you.
You can read useful information later.
Go to list of users who liked
More than 5 years have passed since last update.
dir=/path/to/dir; [ ! -e $dir ] && mkdir -p $dir
※エラー出力をただ握りつぶしたい場合は下記の書き方のほうがシンプルでした。
mkdir -p /path/to/dir 2>/dev/null
Register as a new user and use Qiita more conveniently
Qiita Advent Calendar is an article posting event where you post articles by filling a calendar 🎅
Some calendars come with gifts and some gifts are drawn from all calendars 👀
Please tie the article to your calendar and let's enjoy Christmas together!
Go to list of users who liked