Advertisement
Ilya_Bykonya

Untitled

Apr 18th, 2024
819
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.13 KB | Source Code | 0 0
  1. #!/bin/bash
  2.  
  3. db_set () {
  4.      echo "$1,$2" >> database
  5. }
  6. db_get () {
  7.     grep "^$1," database | sed -e "s/^$1,//" | tail -n 1
  8. }
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement