I need a bash script that can retrieve MySQL data from a remote data base. Actually I have that done, but what I need it to do now is loop through the records somehow and pass a variable to another bash file. Here s my MySQL call:
mysql -X -u $MyUSER -p$MyPASS -h$MyHOST -D$MyDB -e SELECT `theme_name`, `guid` FROM `themes` WHERE `theme_purchased`="1" AND `theme_compiled`= 0 ; > themes.xml
download_themes.sh
现在,我正试图用某种方式通过数据整理数据。 我试图避免PHP和 per,只是试图使用ash。 提前感谢。