help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: GNU emacs locks files modified with CVS


From: gebser
Subject: Re: GNU emacs locks files modified with CVS
Date: Wed, 17 Dec 2003 14:03:49 -0500 (EST)

I wrote that a long time ago when my awk skills were about nil.  This 
was the first time looking at it again in a long, long while.  But 
thanks.   

ken

At 09:26 (UTC-0700) on Wed, 17 Dec 2003 Kevin Rodgers said:

= gebser@speakeasy.net 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 comp.unix.shell, 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
= 
= 





reply via email to

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