The transform commands are: -*: =SET <attr> <expr>= Set =<attr>= to =<expr>= -*: =EVALSET <attr> <expr>= Evaluate =<expr>= and then set =<attr>= to the result -*: =DEFAULT <attr> <expr>= Set =<attr>= to =<expr>= if =<attr>= is undefined or missing -*: =COPY <attr> <newattr>= Copy the value of =<attr>= to =<newattr>= -*: =COPY /<regex>/ <newattrs>= Copy the values of attributes whose names match =<regex>= to =<newattrs>=. -*: =RENAME <attr> <newattr>= Rename =<attr>= to =<newattr>= -*: =RENAME /<regex>/ <newattrs>= Rename attributes matching =<regex>= to =<newattrs>= -*: =DELETE <attr> <newattr>= Delete =<attr>= -*: =DELETE /<regex>/= Delete attributes matching =<regex>= -*: =EVALMACRO <key> <expr>= Evaluate =<expr>= and then insert it as a transform macro value -*: =TRANSFORM [<N>] [<vars>] [in <list> | from <file> | matching <pattern>]= Do the Tranform +|=SET <attr> <expr>=|Set =<attr>= to =<expr>=| +|=EVALSET <attr> <expr>=|Evaluate =<expr>= and then set =<attr>= to the result| +|=DEFAULT <attr> <expr>=|Set =<attr>= to =<expr>= if =<attr>= is undefined or missing| +|=COPY <attr> <newattr>=|Copy the value of =<attr>= to =<newattr>=| +|=COPY /<regex>/ <newattrs>=|Copy the values of attributes whose names match =<regex>= to =<newattrs>=| +|=RENAME <attr> <newattr>=|Rename =<attr>= to =<newattr>=| +|=RENAME /<regex>/ <newattrs>=|Rename attributes matching =<regex>= to =<newattrs>=| +|=DELETE <attr> <newattr>=|Delete =<attr>=| +|=DELETE /<regex>/=|Delete attributes matching =<regex>=| +|=EVALMACRO <key> <expr>=|Evaluate =<expr>= and then insert it as a transform macro value| -In the above commands =<attr>= must be a valid attribute name and =<expr>= a valid ClassAd +Optionally, a transform rule set can end with an iteration command + +=TRANSFORM [<N>] [<vars>] [in <list> {quote:|} from <file> {quote:|} matching <pattern>]= + +In the above commands =<attr>= must be a valid attribute name and =<expr>= a valid {quote: ClassAd} expression or literal. The various $() macros will be expanded in =<expr>=, =<newattr>= or =<newattrs>= before they are parsed as {quote: ClassAd} expressions or attribute names.