Skip to content
hotoo edited this page Sep 27, 2014 · 11 revisions

Convent cheeaun/life data for markline

via sed:

sed 's/\([0-9]\{1,2\}\)\/\([0-9]\{1,2\}\)\/\([0-9]\{4\}\)/\3\/\2\/\1/g;s/\([0-9]\{1,2\}\)\/\([0-9]\{4\}\)/\2\/\1/g;s/\([0-9]\)\-\~/\1\-/g;s/\([0-9]\)\-/\1\~/g;s/ \~\([0-9]\)/ \1/g' life.md

via vim:

:e life.md
:%s/\(\d\{1,2\}\)\/\(\d\{1,2\}\)\/\(\d\{4\}\)/\3\/\2\/\1/g
:%s/\(\d\{1,2\}\)\/\(\d\{4\}\)/\2\/\1/g
:%s/\([0-9]\)\-\~/\1\-/g
:%s/\([0-9]\)\-/\1\~/g
:%s/ \~\([0-9]\)/ \1/g
:wq
Clone this wiki locally