Created
June 18, 2025 19:12
-
-
Save ichux/01812d8f7d07af85a104c11828181b56 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
db_set(){ | |
echo "$1,$2" >> database | |
} | |
db_get(){ | |
grep "^$1," database | sed -e "s/^$1,//" | tail -n 1 | |
} | |
# . adb.sh | |
# db_set i '{"a":1}' | |
# db_get i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment