mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2024-12-25 11:19:59 +00:00
Update bash.sh
This commit is contained in:
parent
cc3cb1bc11
commit
7c9ebfc0be
@ -206,6 +206,10 @@ read -p "prompt" <varname> # same as above but outputs a prompt to ask user fo
|
||||
column -t <filename> # display info in pretty columns (often used with pipe)
|
||||
let <varname> = <equation> # performs mathematical calculation using operators like +, -, *, /, %
|
||||
export VARNAME=value # defines an environment variable (will be available in subprocesses)
|
||||
export -f <funcname> # Exports function 'funcname'
|
||||
export var1="var1 value" # Export and assign in the same statement
|
||||
export <varname> # Copy Bash variable
|
||||
declare -x <varname> # Copy Bash variable
|
||||
|
||||
array[0]=valA # how to define an array
|
||||
array[1]=valB
|
||||
|
Loading…
Reference in New Issue
Block a user