https://github.com/millsoft/notes
A simple Notes script for the linux terminal
https://github.com/millsoft/notes
console linux notes notetaking terminal
Last synced: 2 months ago
JSON representation
A simple Notes script for the linux terminal
- Host: GitHub
- URL: https://github.com/millsoft/notes
- Owner: millsoft
- License: apache-2.0
- Created: 2017-11-01T14:30:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-01T15:07:24.000Z (over 8 years ago)
- Last Synced: 2025-03-01T00:56:40.162Z (over 1 year ago)
- Topics: console, linux, notes, notetaking, terminal
- Language: Shell
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Notes
===================
Notes is a simple wrapper for `awk`. It searches for all `txt` files in a specific path recursively for a specific pattern. All found entries will be printed in the console. Each file can have multiple "entries" separated by `---` (or anything you specify in the script file.
----------
Installation
------------
- edit the path where your txt files are, for example I use it with dropbox:
`NOTES_DIR="~/Dropbox/mynotes"`
- make the script executable: `chmod +x notes.js`
- Add the full path to this script in `~/.bashrc` or `~/.zshrc` like this: `. /home/michael/scripts/notes/notes.sh`
- Reload your rc file with `source ~/.bashrc` (or .zshrc)
Search
------------
To search for things you type the following:
notes blabla
Example txt file:
-------------
Extract bz2
bzip2 -d filename.bz2
---
Extract tar
tar -xvf file.tar
---
Extract tar.bz2
tar -xjvf file.tar.bz2
Now when you want to know how to extract a tar file, you search it like this: `notes extract bz2` or just `notes bz2`
The output looks like this:
########### ./linux/extract.txt
Extract BZ2
bzip2 -d filename.bz2
The first line is always the filename and the rest is the found entry.
01.11.2017 by [MilMike](https://www.milmike.com).
Still work in progress. Feel free to request features or just fork it and make your own "terminal search engine"