On Tue, 2003-08-05 at 00:34, Damon Lynch wrote:
> Could you please describe in words what the awk bit does; I've never
> used awk but I do know python :-)

perhaps first I should mention that the grep grabs this line.

Number=4

then the awk divides it at the = sign and returns the 4 (btw this
happens to be the number of desktops I have.) So $1 would return Number
and $2 would return 4.
 

James

> 
> Damon
> 
> On Tue, 2003-08-05 at 17:15, James Sparenberg wrote:
> > Perhaps it would be best offline dunno.  But would anyone know the
> > python equivalent to 
> > 
> > grep Number "$HOME/.kde/share/config/kdeglobals" | awk -F= '{print $2;}'
> > 
> > For the life of me I'm stumped... but that's no great accomplishment. 
> > Sorry if it's a bit OT but I don't have any visible friends who know
> > python.  *grin*  
> > 
> > James
> > 
> > 
> > 
> > 
> > ______________________________________________________________________
> > Want to buy your Pack or Services from MandrakeSoft? 
> > Go to http://www.mandrakestore.com
> 
> 
> 
> ______________________________________________________________________
> Want to buy your Pack or Services from MandrakeSoft? 
> Go to http://www.mandrakestore.com


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to