Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrcyjanek/bashdb
Minimal key => value file based database.
https://github.com/mrcyjanek/bashdb
Last synced: about 2 months ago
JSON representation
Minimal key => value file based database.
- Host: GitHub
- URL: https://github.com/mrcyjanek/bashdb
- Owner: MrCyjaneK
- License: wtfpl
- Created: 2020-02-21T17:05:53.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-14T09:28:05.000Z (over 3 years ago)
- Last Synced: 2024-10-12T01:37:11.677Z (2 months ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bashdb
Minimal key => value file based database.# Example usage
```
cyjan@root:~$ bashdb
Usage: bashdb [store|delete|read] key [value (only needed in store)]
cyjan@root:~$ bashdb store "my_crazy_key_name/../../../../../../../../../../etc/passwd" "With some stuff inside";
cyjan@root:~$ bashdb read "my_crazy_key_name/../../../../../../../../../../etc/passwd"
With some stuff inside
cyjan@root:~$ ls .bashdb/
my_crazy_key_name_______________________________etc_passwd
cyjan@root:~$ bashdb delete "my_crazy_key_name/../../../../../../../../../../etc/passwd"
cyjan@root:~$ bashdb store "ou" "psie"
cyjan@root:~$ bashdb store "ou" "psie"
[bashdb] > Failed to execute: 'store ou psie', error: it already exist, use 'DELETE' first
cyjan@root:~$ bashdb delete "ou"
cyjan@root:~$ bashdb delete "ou"
[bashdb] > Entry will not get deleted because it didn't exist, imo it's not error so here's 0 exit code.
cyjan@root:~$
```Simply drop bin into your $PATH and chmod +x it.