Updated Tips & tricks (markdown)
parent
97c5d7fa2c
commit
a786856eaf
@ -1,7 +1,7 @@
|
|||||||
The following `bash` function pretty-print the entire comments DB sorted by insertion date.
|
The following `bash` function pretty-print the entire comments DB sorted by insertion date.
|
||||||
|
|
||||||
get_blog_comments () {
|
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 \
|
"'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;'" \
|
FROM comments AS c, threads as t WHERE c.tid = t.id;'" \
|
||||||
| perl -wpe '/(created|modified) = ./&&s/= (.*)/"= ".scalar(localtime($1))/e';
|
| perl -wpe '/(created|modified) = ./&&s/= (.*)/"= ".scalar(localtime($1))/e';
|
||||||
|
Loading…
Reference in New Issue
Block a user