nsbin/fsdb-web/show-pages.fsdb

22 lines
426 B
Plaintext
Executable File

DB=/home/user/nico/DB/wddb/
HTMLDB=/home/user/nico/DB/wddb-html/
DATA_1=`echo $1 | sed 's/\.\.\///g'`
echo $DATA_1
CONTINENT=`echo $DATA_1 | awk -F"/" '{ print $1 }'`
#CONTINENT=`echo $DATA_1 | sed 's/^\(.*\)\/.*/\1/g'`
echo $CONTINENT
DATADIR=`echo $DATA_1 | sed 's/\(.*\)\/\(.*\)/\1/g'`
HTML=`echo $DATA_1 | sed 's/\(.*\)\/\(.*\)/\2/g'`
echo $DATADIR
echo $HTML
if [ ! -d $DB/$CONTINENT ]; then
show_error
fi
grep