2021-09-28 17:29:56 +02:00
|
|
|
#!/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"
|
|
|
|
|