From 25c010a353627e5c404ad2421ccc8ea0066f426a Mon Sep 17 00:00:00 2001 From: onceupon Date: Thu, 28 Sep 2017 13:28:23 +0800 Subject: [PATCH] add others sql-like q,screen, tmux --- README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/README.md b/README.md index 4e0893a..fe7c3a8 100644 --- a/README.md +++ b/README.md @@ -1487,6 +1487,39 @@ htop read -rsp $'Press any key to continue...\n' -n1 key ``` +##### Run sql-like command on files from terminal +download: +https://github.com/harelba/q +example: +```bash +q -d "," "select c3,c4,c5 from /path/to/file.txt where c3='foo' and c5='boo'" +``` + +##### Sreen and tmux +create detached session foo +```bash +screen -S foo -d -m +tmux new -s foo -d +``` + +list sessions +```bash +screen -list +tmux ls +``` + +attach +```bash +screen -r +tmux attach +``` + +attach to session foo +```bash +screen -r foo +tmux attach -t foo +``` + ## System [[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]