You can view notes with Obsidian CLI. See the "read" commands. But also you can do that with your built-in command line tools.
https://help.obsidian.md/cli