wiki/运维/操作系统/Linux/脚本/判断变量为空.sh
2025-01-02 10:46:09 +08:00

5 lines
52 B
Bash

#!/bin/bash
if [ ! $1 ]
then
echo "值为空"
fi