bn=$(basename $2) page="_comic/$1.md" echo -e "---\nimage: comic/$bn\ntitle: \n---" >> $page vim $page curl "$2" > assets/images/comic/$bn