% HELLO(1) Version 1.0 | Frivolous "Hello World" Documentation
hello — prints Hello, World!
| #!/bin/bash | |
| # | |
| # This script encapsulates the functionality of a queue. It requires there to be | |
| # an input file with the data in the queue being separated on different lines. | |
| # | |
| INPUT=queue.txt | |
| OUTPUT=trash.txt | |
| CMD=/usr/bin/vlc |
| # Settings for Screen to allow better use of emacs | |
| # | |
| # Most important: rebind ctrl-A | |
| ## Control-^ (usually Control-Shift-6) is traditional and the only key not used by emacs | |
| escape ^^^^ | |
| # | |
| ## do not trash BackSpace, usually DEL | |
| bindkey -k kb | |
| bindkey -d -k kb | |
| # |
| # These examples assume you have a container currently running. | |
| # 1 Pipe from a file | |
| sudo docker exec --interactive CONTAINER_NAME /bin/bash < the_beginning.sh | tee the_beginning_output.txt` | |
| #2a Pipe by piping | |
| echo "echo This is how we pipe to docker exec" | sudo docker exec --interactive CONTAINER_NAME /bin/bash - |
| Development Status :: 1 - Planning | |
| Development Status :: 2 - Pre-Alpha | |
| Development Status :: 3 - Alpha | |
| Development Status :: 4 - Beta | |
| Development Status :: 5 - Production/Stable | |
| Development Status :: 6 - Mature | |
| Development Status :: 7 - Inactive | |
| Environment :: Console | |
| Environment :: Console :: Curses | |
| Environment :: Console :: Framebuffer |
| # Input: list of rows with format: "<filesize> filename", e.g. | |
| # filesizes.txt | |
| ####################### | |
| # 1000K file1.txt | |
| # 200M file2.txt | |
| # 2G file3.txt | |
| # | |
| # Output: | |
| cat filesizes.txt | numfmt --from=iec | awk 'BEGIN {sum=0} {sum=sum+$1} END {printf "%.0f\n", sum}' |
:py3 import os; print(os.__file__)It will print something like: /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/os.py
lib/python3.7/os.py to bin/python3):export VIMPY="/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/bin/python3"