[O] How to remove duplicate entries?

2011-11-05 Thread gylns

Hi all,

In 2.5 Structure editing of the manual of Org Mode, It says:
 C-c ^ (org-sort-entries-or-items)
  ... With two C-u C-u prefixes, duplicate entries will also be removed.

I had tried this but it seems doesn't work.

* test
** test
** test

I pressed twice C-u and then C-c ^ , sorted by alpha, but no entries be 
removed.


Any one can tell what's wrong about my understanding?


Cheers,
gylns




[O] A quick way to empty contents of entries?

2011-11-04 Thread gylns
Hi, all
I want to empty all my contents but leave only with the headlines and the
properties, is there a fast way?


Cheers,
gylns




Re: [O] A quick way to empty contents of entries?

2011-11-04 Thread gylns
Carsten Dominik carsten.dominik at gmail.com writes:

 
 
 For one file:
 
   perl -ne 'print if /^\*+ / or /^\s*:PROPERTIES:\s*$/../^\s*:END:\s*$/'
old.org  stripped.org




Thanks Carsten, It works!