Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name=Jackson
- echo $name
- name="Jackson"
- echo $name
- <>()[]{}*?$|&#;`'"
- a="5"
- b=10
- echo "$a + $b = "$(($a+$b));
- x=10/2
- echo "$x" # output: 10/2
- declare -i x=10/2
- echo "$x" # output: 5
- declare -i x=what
- echo "$x" # output: 0
- a=5
- declare -i b=10
- a=$a/5
- b=$b/5
- echo "$a $b" #output: 5/5 2
- a=hello
- b=world
- echo $a$b #output hello0
- unset name
- name="Michael Jackson" ; echo "$name"
- unset name #to reset name, see comments
- name=Michael Jackson ; echo "$name"
- cd "${var}"
- cd $var
- for i in $var ; do something_using_i ; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement