您了解了如何把数据重定向到stdin或stdout,如何使用管道,以及如何在UNIX中使用操作符;这些都有助于您编写出更强大的脚本,更好地捕捉错误,使逻辑更简洁清晰。
Knowing how to redirect data as stdin or stdout, how to use the pipe, and how to use operators in UNIX helps you write more powerful scripts with better error trapping and cleaner logic.
上面规则的使用都比较可疑,因为他们都可以通过不使用任何替换操作符来重写.
The use of the above rules is questionable, as they all could be rewritten without using any substitution operators.
它们通常(但不总是)通过对象实例使用对象操作符来调用的。
They are usually — but not always — called via an object instance using the object operator.
使用&&控制操作符来组合两个命令,以便仅当第一个命令返回零退出状态时才运行第二个命令。
Use the && control operator to combine two commands so that the second is run only if the first command returns a zero exit status.
大多数eca规则使用时间操作符搜索与创建或出现的时间相关的事件。
Most ECA rules use temporal operators to search events related to their timestamp of creation or occurrence.
需要能够通过使用SQLJOIN操作符来获得这些信息。
The information needed can be obtained by using the SQL JOIN operator.
DB 2使用XSCAN操作符来遍历XML文档树,如需要,还将计算谓词和提取文档片断和值。
DB2 USES the XSCAN operator to traverse XML document trees and, if needed, to evaluate predicates and extract document fragments and values.
使用PEARDB模块和pdo抽象层的另一个价值在于您可以在sql语句中使用?操作符。
The other value in using the abstraction layers of the PEAR DB module and PDO is that you can use the? Operator in your SQL statements.
可以使用通配符和取反操作符!
You can use wildcards, along with the not operator,!, allowing for complex selection criteria.
使用shell操作符“|”(pipe)也可以使标准输入来自另一个程序的标准输出,如下所示。
Stdin can also come from the standard output of another program, using the "|" (pipe) operator of the shell, as follows.
或者,还是使用“|”操作符,command的输出可以成为另一个程序的标准输入,如下所示。
Or, the command's output can become the standard input for another program, again using the "|" operator like this.
可以通过使用Boolean AND操作符将这两个查询限制组合在该查询中。
These two query restrictions are combined in this query by using the Boolean AND operator.
在清单6中,可以看到组合集合(使用+操作符)和访问成员(通过[position])是多么容易,没有什么值得操心的东西!
In Listing 6, you can see how easy it is to combine collections (using the + operator) and access members (via [position]) — and do so without the fear of things blowing up on you!
summarize方法是通过Dictionary实例使用对象操作符调用的。
The summarize method is invoked via a Dictionary instance using the object operator.
使用dot操作符可以访问或设置hash中的每个属性(参见清单2)。
Each attribute in the hash can be accessed or set using the dot operator (as shown in Listing 2).
可以使用. .操作符来指定整形的范围。
You can specify ranges of integers using the.. operator like so.
拥有构造函数之后,就可以使用new操作符来创建对象了,如下所示
Once I have a constructor function, I can use the new operator to create objects, as shown below
因此,要判断某个值是否是dictionary中的键,应该使用in操作符检查这个值是否在调用keys方法所返回的键值列表中。
Therefore, to determine if a value is a key within a dictionary, you use the in operator to test whether the key is in the list of key values returned by calling the keys method.
通过在awk语句中使用NOT操作符,可以指定不应该提取哪些记录。
By using the NOT operator with awk, you can specify what records should NOT be extracted from the report.
顺便说一句,如果感觉迷糊,不要惊讶:使用重载操作符差不多让Groovy语言退步了。
By the way, if you're getting dizzy, don't be surprised: Using overload operators turns the Groovy language almost backwards.
下面通过一个示例看看使用NOT操作符的sugroups的效果。
Let's look at an example at how sugroups using the NOT operator might be effective.
如果想跟踪不止一个特定的tracelevel属性,那么可以使用位操作符(|)来分隔不同的属性。
If you want to trace more than one specific traceLevel property, then you can use bitwise operator (|) to separate the different properties.
可以使用Transform操作符来调节ForEach操作的结果。
A Transform operator can be used to modulate the result of the ForEach operation.
可以使用范围解析操作符来访问静态属性,该操作符由双冒号(:)组成。
You can access a static property using the scope resolution operator, which consists of a double colon (: :).
要使用表子查询,需要使用SQL操作符将嵌入式查询与布尔表达式组合在一起。
To use a table subquery, you need to use an SQL operator to combine the embedded query with a Boolean expression.
后面的示例将使用这些操作符。
要在对这样的情况使用更多选择的匹配,需要在搜索关键词中使用强制操作符(+)或显式的逻辑操作符(AND)。
To get a more selective match for such cases, use either the enforce operator (+) or an explicit Boolean operator (AND) in the keyword search.
如果您读过我以前的文章(参见参考资料),就会注意到我喜欢使用逻辑操作符,而不是编写多行代码。
If you've read any of my previous articles (see Resources), you'll notice that I favor logical operators over writing several lines of code.
将操作符类与访问方法结合使用,可以指定创建索引和优化查询时使用的操作符。
An operator class is used in conjunction with the access method to specify the operators used for building the index and during query optimization.
注意:可以使用产品源操作符的上下文菜单连接两个操作符。
Note: The product source operator's context menu can also be used to connect two operators.
应用推荐