Created
August 9, 2015 02:49
-
-
Save anonymous/0b37a0df0a24157e1991 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Terminalで一気に | |
echo "update ThreadInfo set threadStatus=2 where threadStatus=6 and isDatOchi=1;" | sqlite3 "$HOME/Library/Application Support/BathyScaphe/BathyScaphe.db" | |
# Automator 前スクリプト | |
echo "select threadName, threadID, boardID from ThreadInfo where threadStatus=6 and isDatOchi=1;" | sqlite3 "$HOME/Library/Application Support/BathyScaphe/BathyScaphe.db" | sed -e 's/\|/ /g' | |
# Automator 後スクリプト | |
ps xaw | grep 'BathyScaphe.app' | grep -v grep > /dev/null && exit 1 | |
awk '{ if( NF > 2 ) printf "update ThreadInfo set threadStatus=2 where boardID=%d and threadID=%d;\n", $NF, $(NF-1) }' | sqlite3 "$HOME/Library/Application Support/BathyScaphe/BathyScaphe.db" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment