View Single Post
Old 11-15-2008, 07:58 PM   #16
thomega
Connoisseur
thomega began at the beginning.
 
Posts: 56
Karma: 22
Join Date: Oct 2008
Location: Würzburg, Germany
Device: iRex DR1000S
Quote:
Originally Posted by allovertheglobe View Post
As I understand it, once SQlite is installed, it could take a shell one-liner to write the corresponding flag to the appropriate metadata.db...
You're right:
Code:
 mktemplate () { echo 'update file_metadata set is_template = 1 where filename = "'$1'";' | sqlite3 metadata.db; }
Instead of shell function, you can use a script of course ...
thomega is offline   Reply With Quote