piston/packages/sqlite3/3.36.0/run

20 lines
228 B
Plaintext
Raw Normal View History

#!/bin/bash
2022-06-02 00:52:35 +02:00
code=`cat "$1"`
shift
argv_text=""
for arg in "$@"
do
argv_text+='insert into argv (arg) values ("'"`echo "$arg" | sed 's/"/""/g'`"'");
'
done
sqlite3 <<< "create table argv (arg text);
$argv_text
$code"