#!/bin/sh #ファイル名のサニタイズ関数 sanitize() { t1=$(echo "$1"|sed -e 's,<[^>]*>,,g') #strip_tags t1=$(echo "$t1"|sed -e 's/[\~\`\!\@\#\$\%\^\&\*\=\+{}\\|;:\"\,\<\.\>\/\?]+//g' -e "s,[']+,,g") #str_replace echo "$t1"|sed -e 's, ,,g' #スペースを削除 } DEBUG="$@" DIR=$PWD DB_FILE=$HOME/Library/Kobito/Kobito.db SQLITE3=/usr/bin/sqlite3 MSG='Automatic Update' SQL_SELECT_ID='select ZUID from ZITEM where ZUID is not nul
