In linux, write one-line script to create new directory ktest (in current directory) ONLY if ktest does not already exist. Do it by finishing following code snippet:
ls ktest >& /dev/null [...]
|| mkdir ktest
^^ note use of || to denote only if command 1 (i.e. ls ktest >& /dev/null) fails, command 2 (i.e. mkdir ktest) runs
In linux, write one-line script to create new directory ktest (in current directory) ONLY if ktest does not already exist. Do it by finishing following code snippet:
ls ktest >& /dev/null [...]
In linux, write one-line script to create new directory ktest (in current directory) ONLY if ktest does not already exist. Do it by finishing following code snippet:
ls ktest >& /dev/null [...]
|| mkdir ktest
^^ note use of || to denote only if command 1 (i.e. ls ktest >& /dev/null) fails, command 2 (i.e. mkdir ktest) runs
status | not learned | measured difficulty | 37% [default] | last interval [days] | |||
---|---|---|---|---|---|---|---|
repetition number in this series | 0 | memorised on | scheduled repetition | ||||
scheduled repetition interval | last repetition or drill |