# Create one file from all the Daily Notes in one year

**URL:** <https://forum.obsidian.md/t/create-one-file-from-all-the-daily-notes-in-one-year/76057>\
**Category:** Help\
**Created:** [January 31, 2024, 2:43pm UTC](https://forum.obsidian.md/t/create-one-file-from-all-the-daily-notes-in-one-year/76057 "2024-01-31T14:43:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DJP](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/d/bbe5ce/32.png) [@DJP](https://forum.obsidian.md/u/DJP)\
**Post date:** [January 31, 2024, 2:43pm UTC](https://forum.obsidian.md/t/create-one-file-from-all-the-daily-notes-in-one-year/76057/1 "2024-01-31T14:43:42Z")

</div>

First, search the [help docs](https://help.obsidian.md) and this forum. Maybe your question has been answered! The [debugging steps](https://forum.obsidian.md/t/about-the-bug-reports-category/24/11) can help, too. Still stuck? Delete this line and proceed.

### What I’m trying to do

Create one file from all the Daily Notes in one year so that I have one journal file for all of 2023. . My note file format for example is 2023-01-01 Sun.md for the first Daily Note of 2023 and the last is 2023-12-31 Sun.md. Daily Notes for each year are all saved in one Folder called Daily Notes. This would make it very easy to read through the year’s events without having to open each individual file to read through it.

### Things I have tried

I looked to see if there is any plug in that might do this and didn’t see any. Also did a search in the forum for this and didn’t find anything. I am not a programmer so the ability to do this is above my pay grade. It is probably something very simple for a programmer. Thanks for any help you are able to give.

---

<div class="post-metadata">

**Author:** ![blue\_emperor](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/9e8a1a/32.png) [@blue\_emperor](https://forum.obsidian.md/u/blue_emperor)\
**Post date:** [January 31, 2024, 4:23pm UTC](https://forum.obsidian.md/t/create-one-file-from-all-the-daily-notes-in-one-year/76057/2 "2024-01-31T16:23:36Z")

</div>

You should use bash and pandoc for combining md files. You can get bash for windows using wsl: [https://www.howtogeek.com/devops/what-is-windows-subsystem-for-linux-wsl-and-how-do-you-use-it/](https://www.howtogeek.com/devops/what-is-windows-subsystem-for-linux-wsl-and-how-do-you-use-it/)

```txt
#!/bin/bash 
pandoc *.md > final.md

```

I guess pandoc ignores YAML fields by default and you can use `--standalone` to include YAML.

---

<div class="post-metadata">

**Author:** ![Anwen](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/b5e925/32.png) [@Anwen](https://forum.obsidian.md/u/Anwen)\
**Post date:** [January 31, 2024, 10:06pm UTC](https://forum.obsidian.md/t/create-one-file-from-all-the-daily-notes-in-one-year/76057/3 "2024-01-31T22:06:54Z")

</div>

One solution, if you only want to be able to read them in a page, not necessarily edit them, might be to use the Run plugin, making a request like this so that all the notes for the year are displayed:

````auto
%% run start
```ts fold
const result = await dv.query(`
LIST WITHOUT ID "!" + file.link
FROM "Journal"
WHERE contains(file.name, "2023")
`)
return dv.markdownList(result.value.values.join("\n"))
``` 
%%

````

---

<div class="post-metadata">

**Author:** ![CawlinTeffid](https://forum.obsidian.md/user_avatar/forum.obsidian.md/cawlinteffid/32/82899_2.png) [@CawlinTeffid](https://forum.obsidian.md/u/CawlinTeffid)\
**Post date:** [February 1, 2024, 4:46am UTC](https://forum.obsidian.md/t/create-one-file-from-all-the-daily-notes-in-one-year/76057/4 "2024-02-01T04:46:57Z")

</div>

You could [embed](https://help.obsidian.md/Linking+notes+and+files/Embed+files) them all in a file, manually or with the help of the Waypoint plugin (and a search-replace to turn the links into embeds, and/or the Easy Bake plugin).

Or you could try one of these plugins:

- Daily Notes Editor
- Daily Notes Viewer
- Longform

Some related forum threads that may contain more info:

- [Migrating from Roam. How do I change to infinite scroll daily notes mode?](https://forum.obsidian.md/t/migrating-from-roam-how-do-i-change-to-infinite-scroll-daily-notes-mode/60852)
- [Continuous chronological feed of the Daily Notes](https://forum.obsidian.md/t/continuous-chronological-feed-of-the-daily-notes/11841)
- [Note infinite scroll / opening folder of notes](https://forum.obsidian.md/t/note-infinite-scroll-opening-folder-of-notes/6772)
- [Continuous View - Scrivener Like](https://forum.obsidian.md/t/continuous-view-scrivener-like/42953)
- [One single massive daily note instead of a note per day](https://forum.obsidian.md/t/one-single-massive-daily-note-instead-of-a-note-per-day/31660)

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [May 1, 2024, 4:47am UTC](https://forum.obsidian.md/t/create-one-file-from-all-the-daily-notes-in-one-year/76057/5 "2024-05-01T04:47:48Z")

</div>

Closed on May 1, 2024, 4:47am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
