8 Jul
2013
8 Jul
'13
05:36
On 07/08/2013 05:49 AM, Mark Goldstein wrote:
echo $DISPLAY | cut -d: -f2
another way: let bash remove everything before the ":" (including the colon): $ echo "${DISPLAY#*:}" BTW: Please note that the DISPLAY variable can consist of another part, e.g. "localhost:0.0" has the same meaning as ":0". Have a nice day, Berny -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org