Came across this, what is -z
in the shell script if [ -z "${FILE_LIST}" ]
?
相关问题
- How to get the return code of a shell script in lu
- Invoking Mirth Connect CLI with Powershell script
- Emacs shell: save commit message
- “command not found” errors in expect script execut
- Python script using subprocess and xclip hangs if
相关文章
- 使用2台跳板机的情况下如何使用scp传文件
- In IntelliJ IDEA, how can I create a key binding t
- shell中反引号 `` 赋值变量问题
- How get the time in milliseconds in FreeBSD?
- Launch interactive SSH bash session from PHP
- Generate disk usage graphs/charts with CLI only to
- How can I create a small IDLE-like Python Shell in
- Pause shell script until user presses enter
I think if you're using bash, then it would return true if the length of the string is zero (so in your case, there are no files in the list).
[
is the same astest
. Andman test
gives:Note: On some platforms,
[
is a symlink or hardlink totest
-z tests for a zero-length string.
From
help test
: