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

[Condor-users] condor query format




Dear all,

I was playing around with "-format" option and I found some strange result which I cannot understand.
Some of them as follow:

[root@serv03 root]# condor_status -r -format '%s\n' ClientMachine | sort | uniq -c
     1	
   104	dog--bio.grid
    18	serv03--hep--phy.grid


Why there is a blank line in the beginning?

[root@serv03 root]# condor_status -r -format '%s\n' ClientMachine | sort | uniq -u


"uniq -u" doesn't return anything, why is that?

[root@serv03 root]# condor_status -r -format '%s\n ' ClientMachine | sort | uniq -c

1 116 dog--bio.grid
    18	 serv03--hep--phy.grid
     1	serv03--hep--phy.grid


A gap between \n and ' (i.e. '%s\n ') puts another extra line at the end - serv03 is one place moved to the left and that makes it two different entries.

Does anyone have any explanation for this?

Cheers,
Santanu