diff -r a39066264509 -r 2868d772c27e relpipe-data/examples-awk-changing-values.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/relpipe-data/examples-awk-changing-values.xml Tue May 28 21:18:20 2019 +0200 @@ -0,0 +1,45 @@ + + + Changing values with AWK + regular expression text replacement + 02300 + + + +

+ Besides filtering, we can use an AWK transformation to modify attribute values. + This means simply rewriting the value of given variable in AWK and calling record() function at the end. +

+ +

For example we can move all volumes mounted under /mnt/ to another directory using regular expressions:

+ + + +

which will result in:

+ +
+ +

+ We can modify multiple attributes in a single transformation + and we can also use other AWK functions like toupper(), tolower() etc. +

+ +
+ +