-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathtest.sh
executable file
·55 lines (46 loc) · 1.46 KB
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/env bash
# include functions
readonly CURR_WD=`pwd`
cd "$(dirname "$0")";
. ./_util-functions.sh
. ./_mail-functions.sh
. ./_joplin-functions.sh
cd ${CURR_WD}
#joplin sync
#getTitleFromSubject "this is a test #foo #bar @Import #baz hallo"
#getTitleFromSubject "this is a test hallo"
#
#getTagsFromSubject "this is a test #foo #bar @Import #baz"
#getTagsFromSubject "this is a test @Import"
#
#getNotebookFromSubject "this is a test #foo #bar @Import #baz"
#getNotebookFromSubject "this is a test #foo #bar #baz"
#addNewNoteFromMailFile "$1"
echo "---"
filename="this is a test[foo bar].txt"
echo "$filename"
getTitleFromFilename "$filename"
getTagsFromFilename "$filename"
getNotebookFromFilename "$filename" "$DEFAULT_NOTEBOOK"
getCreationDateFromFilename "$filename"
echo "---"
filename="2018-06-19 08.52.06 - Evolve Bamboo GTX E-Longboard.md"
echo "$filename"
getTitleFromFilename "$filename"
getTagsFromFilename "$filename"
getNotebookFromFilename "$filename" "$DEFAULT_NOTEBOOK"
getCreationDateFromFilename "$filename"
echo "---"
filename="2017-09-07 Zahnarzt Rechnung[gesundheit].pdf.txt"
echo "$filename"
getTitleFromFilename "$filename"
getTagsFromFilename "$filename"
getNotebookFromFilename "$filename" "$DEFAULT_NOTEBOOK"
getCreationDateFromFilename "$filename"
echo "---"
filename="test"
echo "$filename"
getTitleFromFilename "$filename"
getTagsFromFilename "$filename"
getNotebookFromFilename "$filename" "$DEFAULT_NOTEBOOK"
getCreationDateFromFilename "$filename"