DrMaemi / blog

1 stars 0 forks source link

[Bash] 문자열(변수) 길이 구하기 (변수 세팅 여부 확인?) #159

Open DrMaemi opened 10 months ago

DrMaemi commented 10 months ago
#!/bin/bash

VAR=

if [ ${#VAR} -eq 0 ]; then
    echo "VAR is not set."
fi

echo "Program terminated"