var data = `[ -----] system configuration
[ -----] system configuration save
[ -----] system configuration factory-reset
[ ---H-] system environment
[ n--H-] system environment set`;
console.log(data.split('\n').map(e=>e.replace(/\[.*\] (.*)/,"'$1'").split(" ").join(".")).join("|"))