2022-03-03 14:25:34 +00:00
|
|
|
#!/bin/bash
|
|
|
|
echo "Gerando usuários..."
|
|
|
|
|
2023-04-03 14:05:14 +00:00
|
|
|
rm output.sql
|
|
|
|
touch output.sql
|
2022-03-03 14:25:34 +00:00
|
|
|
|
|
|
|
while IFS="" read -r username || [ -n "$username" ]; do
|
2022-03-03 14:49:58 +00:00
|
|
|
sed "s/username/$username/g" basesql.sql >>output.sql
|
2023-04-03 14:05:14 +00:00
|
|
|
echo -e "\n\n" >>output.sql
|
2022-03-03 14:25:34 +00:00
|
|
|
done <input.txt
|