bash script for creating new posts