[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNU emacs locks files modified with CVS

From: Kevin Rodgers
Subject: Re: GNU emacs locks files modified with CVS
Date: Wed, 17 Dec 2003 09:26:56 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

address@hidden wrote:

Of course everyone can set up their systems however they wish, but I use:

export DISPLAY=$(who -lum|awk -F '(' '{print $2}'|awk -F ')' '{print $1}'):0

in my ~/.bashrc and have no problem logging in and/or running remotely
whatever X apps I want.

I know this isn't, but that pipe can be simplified a little by
passing a regex as awk's field separator:

export DISPLAY=$(who -lum | awk -F'[()]' '{print $(NF-1)}'):0

Kevin Rodgers

reply via email to

[Prev in Thread] Current Thread [Next in Thread]