better

Guides for choosing better software
git clone git@getsh.org:better.git
Log | Files | Refs | README

commit a82c612f03a184904e2df82605e45e1af898e5e9
parent 79f53f1ebbbc20d10aa9e44d776da9e1c4d37a81
Author: dfaultkey <dfaultkey@gmail.com>
Date:   Fri, 30 Jul 2021 06:01:46 +0530

Added script for importing to joplin

Diffstat:
Acrossplatform/notes/joplin-import | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/crossplatform/notes/joplin-import b/crossplatform/notes/joplin-import @@ -0,0 +1,15 @@ +#!/usr/bin/bash env + +if [ -$# -lt 2]; then + echo 'Usage joplin-import <notebook> <md-files>' +fi + +notebook=$1 +md_files=$2 #TODO splice array + +#TODO ask confirmation + +joplin mkbook "${notebook}" +joplin use "${notebook}" +for i in ${md_files[@]}; do joplin mknote "${i}"; done +