I have a textfile, a portion of the data is going into mysql.
I could write a separate program to handle this and run it from the shell script, but it would be nice if I could get it to work straight from bash. (If only to learn more bash)
I'm way of my bash league here, but I imagine something like
`mysql -h host -u user -p pass < insert into x (foo, bar) values ("baz", "$(script to get data)") `
The data I'm looking for will have ------- both prepended and appended.