ihgazni2 / ecli

some simple toolset,such as show print json, recursive cat file..

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

$ pip3 install ecli
RESOURCES# ecli_dir2pls
['opt', 'PY3', 'ECLI_', 'ecli', 'RESOURCES', 'BENCH']
['opt', 'PY3', 'ECLI_', 'ecli', 'RESOURCES', 'BENCH', 'git']
['opt', 'PY3', 'ECLI_', 'ecli', 'RESOURCES', 'BENCH', 'set_root']
['opt', 'PY3', 'ECLI_', 'ecli', 'RESOURCES', 'BENCH', 'fdisk']
['opt', 'PY3', 'ECLI_', 'ecli', 'RESOURCES', 'BENCH', 'py3']
['opt', 'PY3', 'ECLI_', 'ecli', 'RESOURCES', 'BENCH', 'terminal']
['opt', 'PY3', 'ECLI_', 'ecli', 'RESOURCES', 'BENCH', 'dir']
['opt', 'PY3', 'ECLI_', 'ecli', 'RESOURCES', 'BENCH', 'gcc']
['opt', 'PY3', 'ECLI_', 'ecli', 'RESOURCES', 'BENCH', 'js']
['opt', 'PY3', 'ECLI_', 'ecli', 'RESOURCES', 'BENCH', 'vim']
['opt', 'PY3', 'ECLI_', 'ecli', 'RESOURCES', 'BENCH', 'rpm']
=======
/opt/PY3/ECLI_/ecli/RESOURCES/BENCH
/opt/PY3/ECLI_/ecli/RESOURCES/BENCH/git
/opt/PY3/ECLI_/ecli/RESOURCES/BENCH/set_root
/opt/PY3/ECLI_/ecli/RESOURCES/BENCH/fdisk
/opt/PY3/ECLI_/ecli/RESOURCES/BENCH/py3
/opt/PY3/ECLI_/ecli/RESOURCES/BENCH/terminal
/opt/PY3/ECLI_/ecli/RESOURCES/BENCH/dir
/opt/PY3/ECLI_/ecli/RESOURCES/BENCH/gcc
/opt/PY3/ECLI_/ecli/RESOURCES/BENCH/js
/opt/PY3/ECLI_/ecli/RESOURCES/BENCH/vim
/opt/PY3/ECLI_/ecli/RESOURCES/BENCH/rpm
RESOURCES#
ecli# cd RESOURCES/
RESOURCES# ecli_dir2json
{"opt": {"PY3": {"ECLI_": {"ecli": {"RESOURCES": {"BENCH": {"git": {}, "set_root": {}, "fdisk": {}, "py3": {}, "terminal": {}, "dir": {}, "gcc": {}, "js": {}, "vim": {}, "rpm": {}}}}}}}}
RESOURCES#
  • ecli_jsonq json-file key key key .....
#loosely search
#ecli_jsonq nest.json display

docs/jsonq-loose.png

#exact search
#ecli_jsonq nest.json Displays 0

docs/jsonq-exact.png

#listall
#ecli_jsonq nest.json

docs/jsonq-listall.png

#ecli_pobj -path pobj.json

docs/pobj-json.png

#ecli_html_tagq tst.html "ead me"

docs/html-tagq.png

#ecli_html_attrq tst.html "src"

docs/html-attrq.png

#ecli_html_txtq tst.html "pdf"

docs/html-txtq.png

  • MIT

About

some simple toolset,such as show print json, recursive cat file..

License:MIT License


Languages

Language:C 72.7%Language:Yacc 20.3%Language:C++ 5.5%Language:Python 1.0%Language:Shell 0.3%Language:Lex 0.2%Language:HTML 0.1%Language:Batchfile 0.0%