raw data management script like SQL and databases - wtitten in bash 5.14
text banks allow you to store and retrieve any data or move data in a single file, this way you can create permanent configurations and use that data.
git clone "https://github.com/themispkg/bashtextbank"
cd bashtextbank
bash configure.sh && sudo make install
Normally, documentation is important in such projects, but the purpose of bash text bank is light and portable, so I will leave a text that we can show as documentation, it won't be too long. It already has 11 features.
Create compressed banks in gzip format, maximum one parameter can be entered, a gzip file with .btb extension is given with the entered parameter name.
btbshell --create-bank test
create tables inside the text bank.
btbshell --create-table --bank test.btb table1 table2
create files inside tables from text bank.
btbshell --create-file --bank test.btb --table table1 --file test1 test2 --table table2 --file foss
delete tables from text bank.
btbshell --remove-table --bank test.btb table1 table2
remove files inside tables.
btbshell --remove-file --bank test.btb --table table1 --file test1 test2 --table table2 --file foss
check if exist tables form text bank.
btbshell --check-table --bank test.btb table1 table2
check if exist files inside of tables from text bank.
btbshell --check-file --bank test.btb --table table1 --file test1 test2 --table table2 --file foss
list tables of a text bank.
btbshell --list-table --bank test.btb
list files insade of tables in text bank.
btbshell --list-file --bank test.btb --table table1 table2
write string data in any file of any table.
btbshell --write-file --bank test.btb --table table1 --file test1 --data "hello world"
print the data inside of file in table.
btbshell --print-file --bank test.btb --table table1 --file test1
#!/bin/bash
export bank="deneme"
. delphi "bashtextbank"
btb:create:bank "${bank}"
btb:create:table --bank "${bank}.btb" test1 test2
btb:create:file --bank "${bank}.btb" --table test1 --file example1 --table test2 --file example1
btb:write:file --bank "${bank}.btb" --table test1 --file example1 --data "Hello From Text Bank ;)"
btb:print:file --bank "${bank}.btb" --table test1 --file example1
btb:remove:file --bank "${bank}.btb" --table test1 --file example1
btb:remove:table --bank "${bank}.btb" test1
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.