# Optionally include a second search term
year=`date +%Y`
+month=`date +%m`
# File to gather all content into
topic=$1
if [ ! -n "$1" ]; then
echo "A topic to gather is required."
exit 1
fi
-fname=$(printf "$HOME/Journal/$year/%02d-$topic.md" $(date +%m))
+
+mkdir -p "$HOME/Journal/$year"
+fname="$HOME/Journal/$year/$month-$topic.md"
archive="$HOME/Journal/archive-$year/"
# Files to gather