Is there simple a rule to understand when to use quotes in Ubuntu command line and when single quotes and when double quotes are needed?
For example, how to explain the difference here:
$ echo $'a
aa
ac
b
cc dd
ese'
a
aa
ac
b
cc dd
ese
$
and
$ echo $"a
aa
ac
b
cc dd
ese"
a
aa
ac
b
cc dd
ese
$