and now for conky & gremlins
    Polytropon 
    freebsd at edvax.de
       
    Thu Nov  5 01:30:54 UTC 2009
    
    
  
On Wed, 04 Nov 2009 18:25:58 -0400, PJ <af.gourmet at videotron.ca> wrote:
> output should be: 1  2  3 [4] 5 6 7 etc.
> is:    1 2 3 4 5 6....
> 
> the calendar.sh is exactly:
> #!/bin/sh
> cal | awk 'NR>1' | sed -e 's/   /    /g' -e 's/[^ ] /& /g' -e 's/..*/ 
> &/' -e "s/\ `date +%d`/\[`date +%d`\]/"
It's quite obviously. Let's try the last substitution
argument in plain shell:
	% date +%d
	05
But the command creates this:
	 Su  Mo  Tu  We  Th  Fr  Sa
	  1   2   3   4   5   6   7
The leading zero is missing, so there's no substition that
changes "5" into "[5]", because the search pattern is "05".
-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
    
    
More information about the freebsd-questions
mailing list