{\ttfamily kdb convert \mbox{[}$<$import-\/format$>$\mbox{]} \mbox{[}$<$export-\/format$>$\mbox{]} \mbox{[}$<$import-\/file$>$\mbox{]} \mbox{[}export-\/file\mbox{]}}

\subsection*{D\+E\+S\+C\+R\+I\+P\+T\+I\+O\+N}

This command allows a user to convert a file from any format supported by Elektra to any other supported format.

This command relies on the functionality of Elektra but does not actually modify the key database in any way.

This command uses plugins to specify and convert between formats, it is only limited by the plugins available for Elektra.

\subsection*{U\+S\+A\+G\+E}

Where {\ttfamily import-\/format} is the format that the current configuration file is using, {\ttfamily export-\/format} is the format the user wishes to convert it to, {\ttfamily import-\/file} is the full path to the current configration file, and {\ttfamily export-\/file} is where the converted configuration file should be saved.

If either {\ttfamily import-\/format} or {\ttfamily export-\/format} is not specified, the {\ttfamily storage} plugin will be used instead. The {\ttfamily storage} plugin can be configured at compile-\/time or changed by the link {\ttfamily libelektra-\/storage.\+so}. If either {\ttfamily import-\/file} or {\ttfamily export-\/file} are not specified, {\ttfamily stdin} and {\ttfamily stdout} are used respectively.

\subsection*{O\+P\+T\+I\+O\+N\+S}


\begin{DoxyItemize}
\item {\ttfamily -\/\+H}, {\ttfamily -\/-\/help}\+: Show the man page.
\item {\ttfamily -\/\+V}, {\ttfamily -\/-\/version}\+: Print version info.
\item {\ttfamily -\/p}, {\ttfamily -\/-\/profile}=$<$profile$>$\+: Use a different kdb profile.
\item {\ttfamily -\/v}, {\ttfamily -\/-\/verbose}\+: Explain what is happening.
\end{DoxyItemize}

\subsection*{E\+X\+A\+M\+P\+L\+E\+S}

To convert an Elektra dump file to xml\+: {\ttfamily cat sw.\+ecf $\vert$ kdb convert dump xmltool $>$ sw.\+xml}

Another way to convert an Elektra dump file to xml\+: {\ttfamily kdb convert dump xmltool /home/user/dump\+\_\+file.ecf /home/user/xml\+\_\+file.xml}

To print an xml file using the {\ttfamily line} format\+: {\ttfamily cat ../tests/xml\+\_\+file.xml $\vert$ kdb convert xmltool line} Note that this command won't save the output, it will just display it to {\ttfamily stdout}. 