ifms-batch-sql-create/generate.sh
2023-04-03 10:05:14 -04:00

11 lines
231 B
Bash
Executable File

#!/bin/bash
echo "Gerando usuários..."
rm output.sql
touch output.sql
while IFS="" read -r username || [ -n "$username" ]; do
sed "s/username/$username/g" basesql.sql >>output.sql
echo -e "\n\n" >>output.sql
done <input.txt