#!/bin/bash underscore="_" #indexentry() { # #} episode_headders() { echo ''$(echo $img | cut -d'_' -f1,2)' - WebToon2HTML

'$(echo $img | cut -d'_' -f1,2)'


' } main () { for img in *_???_???.jpg; do if [ -f "$img" ]; then if [ "$(echo $img | cut -d'_' -f2)" == "$current_episode" ]; then # Check to see if this isn't the first image of a new chapter. echo "" >> "$(echo $img | cut -d'_' -f1,2).htm" else # This is the first image for the chapter, do the initial setup. # Put next and back arrows here echo '' >> "$(echo $img | cut -d'_' -f1)$underscore$current_episode.htm" episode_headders > "$(echo $img | cut -d'_' -f1,2).htm" echo "" >> "$(echo $img | cut -d'_' -f1,2).htm" current_episode=$(echo $img | cut -d'_' -f2) fi fi done } main #main () { # echo ''"${PWD##*/} - WebToon2HTML"''"

${PWD##*/}


" # for i in *.jpg; do # echo "" # done # echo "

" #}