diff --git a/Tips-&-tricks.md b/Tips-&-tricks.md index ac9e68d..620d9ad 100644 --- a/Tips-&-tricks.md +++ b/Tips-&-tricks.md @@ -1,7 +1,7 @@ The following `bash` function pretty-print the entire comments DB sorted by insertion date. get_blog_comments () { - ssh chezsoi.org sqlite3 -line /var/www/lucas/isso/isso.db \ + ssh $host sqlite3 -line /path/to/isso/isso.db \ "'SELECT t.uri,c.created,c.modified,c.text,c.author,c.email,c.website \ FROM comments AS c, threads as t WHERE c.tid = t.id;'" \ | perl -wpe '/(created|modified) = ./&&s/= (.*)/"= ".scalar(localtime($1))/e';