I can read the file, the problem is the insert of the string read in the file in mysql language. I tried to add strings contained into a file to a database (phpmyadmin).
Here is the shell :
apps="/test/list.txt"
for app in $apps; do
mysql -utoto -ptiti -h localhost test << EOF
insert into rpm (applications) values('$app');
EOF
done
The problem is that the result in the database is not the values of the file but the path of the file. Thanks for help...!