passing filename with spaces to a shell script

The shellscript is very simple: retroarch $* -c /tmp/retroarch/Data/retroarch/gambatte.cfg (“retroarch” is another shellscript) If the filename passed contains spaces it fails: RetroArch [ERROR] :: Could not read ROM file. Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please … Read more

Is there a way to retrieve the name of the Desktop Environment?

Is there a way to retrieve the desktop environment name (e.g. Gnome, Unity, XFCE, LXDE, KDE…) from the command line or using Python? Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you … Read more

Shell console clearing

Is there a way to clear up what is displayed on the shell console (in ubuntu linux) in just a single key or two? When I get flood of lines from grep and that exceeds the height of the window, I want to quickly scroll back to the position where I typed the command after the prompt. I can do so if I had opened a fresh terminal before I type the command, and just go to the initial position. But if keep using the same terminal window, I have to manually find the position. Ctrl+l is not an answer because it just scrolls, and the contents of the terminal remains. I cannot use less because the colored output of grep does not show up in color.