小编tay*_*oon的帖子

how to check if $1 and $2 are null?

I am running some script which passing the string argument and I want to do if else statement shown as below:

if [ $1 != '' ] && [ $2 != '' ]
then 
    do something.....
Run Code Online (Sandbox Code Playgroud)

but it shown Error too many argument. Why?

command-line bash scripts

61
推荐指数
3
解决办法
19万
查看次数

-x 在 if 条件语句中是什么意思?

-x这里是什么意思:

if [ -x /etc/rc.local ] then
Run Code Online (Sandbox Code Playgroud)

我怎么能找到这个手册页if

command-line bash

28
推荐指数
2
解决办法
3万
查看次数

如何配置 Java 安全设置等?

我已经安装了 JDK 7,但是如何配置安全性等设置?

在 Windows 上,我可以从控制面板 -> Java 设置 JDK 7。

java

8
推荐指数
3
解决办法
6万
查看次数

标签 统计

bash ×2

command-line ×2

java ×1

scripts ×1