How to detect the desktop environment in a bash script?
I am writing a bash
script that needs to know which desktop environment (XFCE, Unity, KDE, LXDE, Mate, Cinnamon, GNOME2, GNOME3,… ) is running.
I am writing a bash
script that needs to know which desktop environment (XFCE, Unity, KDE, LXDE, Mate, Cinnamon, GNOME2, GNOME3,… ) is running.
After understanding the problem with using a password in the command line, I need to find a way of feeding a program with a password without it being a problem (without the password being recorded somewhere).
I have made a Java program that could open any application. Suppose there is a file name “*.jpg”, the it would allow the OS to recognize the type of application and then open the default application. Another example: Suppose the file’s name is “*.flv”, then it would open up the default media player just like when you click an icon in nautilus but the only difference was that it was in command line. Here is the java program for that:
Below is a complete copy of a demo I’m using to to figure out to get the sed
command to get rid of the spaces in a persons name, and compress it down to not have spaces.
I have a bash script that is reading a CSV
file , that contains source IP
address , destination IP
address and destination port
.
How do I get the ASCII value of the alphabet?