Originally Posted by cghcgh
That is correct Bash syntax. It yields 'aaabbb' for $B. The other two are syntactically correct, but do not change $B. If you use
you would echo the 'bbb' string into a file
If you use
you would echo the contents of the file
'bbb' string into a file
You can try such constructs easily in a console, and verify that they work.
Note that in my previous post I had a typo concerning the code for '>' That should be ampersand#062; instead of ampersand#060; I wrote the same string twice.