Thanks to WDef now my script works almoost pefectly.I have now one problem. Sometimes I need to show ASCII graphics in dialog or any text that has multiple spaces in a row. It seems that dialog (I don't know about whiptail) removes any extra spaces. Any Idea how to left these spaces there?