Mailinglist Archive: opensuse (686 mails)

< Previous Next >
Re: [opensuse] shell script help
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,
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups