view html2dir.sh @ 0:b78e329514b8

Add utils proj.
author Oleksander Gavenko <gavenko_a@3g.ua>
date Thu, 17 Jan 2008 21:44:13 +0200
parents
children b73ad8a02942
line wrap: on
line source

#! /bin/sh

for page in `find -maxdepth 1 -name '*.htm*'`; do
    dir=`echo $page | sed 's/\.[^.]*$//g'`

    mkdir $dir
    mv $page $dir
    mv ${dir}_files ${dir}
done