New answers tagged text
The text-based window-like interface, contained within a terminal, that you see when you run sudo dpkg-reconfigure lightdm is coded using the ncurses library. So if you want your program to provide an interface that looks like that, you can use ncurses too. Here's the ncurses project page. Here's an NCURSES Programming HOWTO. You can install some ncurses ...
If possible (eg, it's a valid xml document), I'd highly advise a tool that's intended for this job. eg, xmllint (from the package libxml2-utils). xmllint --format filename.xml
I don't think tr can replace sequences of characters (just single characters at a time, albeit possibly from a set) - I would try something like sed 's|</ROW>|&\n|g' source.xml > destination.xml
Top 50 recent answers are included