bash,c,python3,code
This commit is contained in:
parent
4efabace5e
commit
0a19a68dbe
9 changed files with 6 additions and 15 deletions
26
in/public/bash/snippets.rst
Normal file
26
in/public/bash/snippets.rst
Normal file
|
@ -0,0 +1,26 @@
|
|||
********
|
||||
Snippets
|
||||
********
|
||||
|
||||
Start a runnable script file
|
||||
============================
|
||||
|
||||
.. code:: bash
|
||||
|
||||
#! /bin/bash
|
||||
|
||||
Find out current script
|
||||
=======================
|
||||
|
||||
.. code:: bash
|
||||
|
||||
SCRIPT_FILE="$(realpath "${BASH_SOURCE[0]}")"
|
||||
SCRIPT_DIRECTORY="$(dirname "${SCRIPT_FILE}")"
|
||||
SCRIPT_NAME="$(basename "${SCRIPT_FILE}")"
|
||||
|
||||
Quit the interpreter
|
||||
====================
|
||||
|
||||
.. code:: bash
|
||||
|
||||
exit
|
Loading…
Add table
Add a link
Reference in a new issue