shell - if [ -n "${TEMP_FILE_LIST}"] 中的 -n 有何作用?

标签 shell unix

if [ -n "${TEMP_FILE_LIST}"] 中的 -n 对此 shell 脚本有何作用?

最佳答案

来自帮助测试:

  -n STRING
     STRING      True if string is not empty.

关于shell - if [ -n "${TEMP_FILE_LIST}"] 中的 -n 有何作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7630910/

相关文章:

user-interface - 构建允许通过ssh和GUI运行命令的应用程序时使用的最佳脚本语言\技术?

regex - grep 双引号与单引号

perl - *nix : perform set union/intersection/difference of lists

c - 以与 "ls -l"命令相同的方式格式化日期/时间

linux - 关于 rfc 的系统日志问题

ruby - Ruby 1.8 的 Shellwords.shellescape 实现

powershell - PowerShell:脚本无法打开存档中的 native 文件,但能够用于新创建的文件

linux - 连接两个文件并使用Shell脚本进行计算

c++ - 在使用pthread_create 创建的线程之间读写管道时是否需要关闭fds?

unix - 将 Windows/DOS 文件批量转换为 Unix 的最佳方法是什么?