On 2025-09-28 19:36, Remind list wrote:
> >  bash$ diff -u <(rem -c -w,0,0) <(rem -c | grep '[a-zA-Z0-9-]')
> > shows that the -w,0,0 version has one extra empty line in each week.
>
> Could you just pipe your output through sed, or am I missing
> something? 
> 
> sed '/^\s*$/d'

The problem is that the lines aren't perfectly blank, because they also
have vertical-bars in them (and the exact character depends on whether
I use `-c` or `-cu`).  If you look at the diff(1) output of my command,
you'll see that the lines prefixed with the "-" (the lines that differ)
have blank lines in each cell, but still have the line-drawing around
the cells.

You can see the lines-to-remove if you invert the grep(1) call with -v:


  $ remind -c -w,0,0 /dev/null | grep -ve '[a-zA-Z0-9-]'
  |          |          |          |          |          |          |          
|$
  |          |          |          |          |          |          |          
|$
  |          |          |          |          |          |          |          
|$
  |          |          |          |          |          |          |          
|$
  |          |          |          |          |          |          |          
|$
  ^L$

:-)

-tim
-- 





_______________________________________________
Remind-fans mailing list
[email protected]
https://dianne.skoll.ca/mailman/listinfo/remind-fans
Remind is at https://dianne.skoll.ca/projects/remind/

Reply via email to