UNIX has it covered as always with the test command.
UNIX一直通过test命令提供这一功能。
To use the test command, simply provide the command with the appropriate flag and file name.
要想使用test命令,只需给这个命令提供适当的标志和文件名。
You can combine tests that are allowed for the test command using parentheses and logical operators.
可以用括号和逻辑操作符把test命令支持的测试组合起来。
As the test man page states, the test command evaluates expression parameters and, if the expression value is True, returns a zero (True) exit value.
正如test的手册页指出的,test命令运算表达式参数的值,如果表达式的值是True,就返回零(True)退出值。
As the test man page states, the test command evaluates expression parameters and, if the expression value is True, returns a zero (True) exit value.
正如test的手册页指出的,test命令运算表达式参数的值,如果表达式的值是True,就返回零(True)退出值。
应用推荐