Skip to content

Instantly share code, notes, and snippets.

@jeremiahmarks
Created April 25, 2014 22:24
Show Gist options
  • Save jeremiahmarks/11305201 to your computer and use it in GitHub Desktop.
Save jeremiahmarks/11305201 to your computer and use it in GitHub Desktop.
cleaning up parts of webanize
source ~/.webanize.conf
newstring="START of STRING"
dbloc="url"
myfirstquery="SELECT dateadded,about FROM portfolio WHERE sourcecode LIKE '$dbloc'"
mysql --host=$hostname --user=$username --password=$pw -e "USE $dbname; $myfirstquery;" | while read -r line
do
newstring+=$line
done
echo $newstring
########################################################
## Above does not work, while below does.
########################################################
# nstring="start of string"
# for a in {a..f}
# do
# nstring+=$a
# done
# echo $nstring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment