0

I got a set of datas after executing sed command, now I want to append this output to my table in mysql(not overwriting just append). But I am not sure if its possible. Any example?

sed -e "0,/$timestamp/d" /home/xxx/xx  > "To Mysql"
3
  • See: How to feed mysql queries from bash Commented Sep 15, 2017 at 6:26
  • @Cyrus I dnt want to overwrite my existing datas in my table. I just want to append new datas to my table with previous datas. Commented Sep 15, 2017 at 6:46
  • Then the SQL will be slightly different, but the concept of feeding something to MySQL from Bash will remain the same. If you need help with figuring out how to tell SQL to add something to an existing table, you need to articulate that in the question. (Hint: The SQL command insert into.) Commented Sep 15, 2017 at 6:51

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.