File does NOT exist
if [ ! -e /path/to/file/hoge.txt ]; then # Process when the file doesn't exist fi
File size is NOT 0
if [ ! -s /path/to/file/hoge.txt ]; then # Process when the file size is 0 fi
if [ ! -e /path/to/file/hoge.txt ]; then # Process when the file doesn't exist fi
if [ ! -s /path/to/file/hoge.txt ]; then # Process when the file size is 0 fi
0 Comments:
Post a Comment