View Single Post
Old 11-16-2008, 02:28 AM   #17
adi
Enthusiast
adi began at the beginning.
 
Posts: 34
Karma: 36
Join Date: Oct 2008
Device: irex digital reader
Quote:
Originally Posted by thomega View Post
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 ...
Thanks. Works perfectly.

Maybe we should start collecting all linux related snippets somewhere. I managed to get shortcuts working by trial and error (if the filename/directory constains spaces, do not escape them). Next is merging notes and pdf.

Thanks,
Adi
adi is offline   Reply With Quote