Horje
sh check if directory is empty Code Example
sh check if directory is empty
#!/bin/bash
DIR="/tmp"

if [ "$(ls -A $DIR)" ]; then
     echo "Wow, $DIR is not Empty"
else
    echo "$DIR is Empty"
fi




Shell

Related
sed replace number of variable length Code Example sed replace number of variable length Code Example
error failed to launch the browser process puppeteer Code Example error failed to launch the browser process puppeteer Code Example
clean docker images and containers Code Example clean docker images and containers Code Example
install ionic cli globally Code Example install ionic cli globally Code Example
webpack-dev-server command not found Code Example webpack-dev-server command not found Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10