标签: bash shell command
我已经交了一个条件
if test -s "$SOME_DIR/$some_file" then ##some code fi
问题:这个test -s应该做什么?它的目的是什么?
test -s
答案 0 :(得分:2)
如果文件存在且不为空(大小大于0),则test -s命令返回true。