use WordPressのDB名
select
post_title,
concat('URLアドレス/archives/', ID) as post_name
from
wp_posts
where
post_status = 'publish'
and post_type in ('post', 'page')
INTO OUTFILE '/path/to/file1';
concat連結がミソ。
でそのファイルに対してsedを使ってハッシュタグをつける
sed -e ‘s/$/ #TAG1 #TAG2 #TAG3/g’ /path/to/file1 > /path/to/file12
bot用ネタファイルの出来上がり。
