Bulk import into Dnote

Is it possible to provide a flag to the “dnote add” command, such as "dnote add -f programming.md’ to import existing notes into the dnote system?

You could try something like:

dnote add yourBook -c "$(cat programming.md)"

The above command will import the content of the file programming.md into the dnote book named yourBook.

If you have many such files to import, you could try to loop through all files:

files=$(find ./yourDirectory)
for file in $files; do
  dnote add yourBook -c "$(cat $fiile)"
done
1 Like

Thanks. This did the trick.

1 Like