Quick Reference Guide
"Success is the progressive realization of a worthy Ideal" - Earl Nightingale
Sunday, 11 September 2011
Use quotes and curly brackets if needed
~ $ ls tmp/
a b
~ $ VAR="tmp/*"
~ $ echo $VAR
#surprisingly got directory echoed
tmp/a tmp/b
$ echo "$VAR"
tmp/*
~ $ echo $VARa
~ $ echo "$VARa“
~ $ echo "${VAR}a" #Good Practice
?tmp/*a
~ $ echo ${VAR}a
?tmp/a
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment