Created
April 13, 2016 15:51
-
-
Save refset/6d07ae02b60e6528f0397cebcbdf87dd to your computer and use it in GitHub Desktop.
Sed command to convert 4-space-indented Freeplane text (exported via copy/paste) to org-mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed 'h;s/[^ ].*//;s/ /*/g;s/$/ /;G;s/\n *//' file.txt > out.org | |
# the first line might need removing or manually editing to be 100% correy | |
# couldn't have done it without: http://unix.stackexchange.com/a/47210 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment