start page | rating of books | rating of authors | reviews | copyrights

sendmail Desktop Reference

sendmail Desktop ReferenceSearch this book
Previous: 2.12 Wildcard Operators in the LHS Chapter 2
The sendmail.cf File
Next: 2.14 Other Operators in the RHS
 

2.13 Positional Operators in the RHS

The RHS rewrites by substitution. Wildcard operators in the LHS select the portions of the workspace to be passed to the RHS. The first wildcard is assigned to $1 , the second to $2 , and so on. Consider:

R$+@$*    $2!$1  -^  -^  

$1

 

$2

Here, an Internet address is rewritten in UUCP form. Note that there are only nine such positional operators, and that $0 is illegal.


Previous: 2.12 Wildcard Operators in the LHS sendmail Desktop Reference Next: 2.14 Other Operators in the RHS
2.12 Wildcard Operators in the LHS   2.14 Other Operators in the RHS