CFEngine: canonify your own strings
Want to quickly canonify a string for testing ? A shell one-liner has been given by the CFEngine folks :
Example with the mac address 00:1a:d1:48:ff:d0
|
|
The mac address is correctly canonified to 00_1a_d1_48_ff_d0, but my shell prompt is appended. For extra clarity a newline can be added with the -l flag:
|
|
Neil H. Watson has also transformed this one-liner to an independent script