Try executing the following under a bash shell echo "Reboot your instance!"
On my installation:
root@domU-12-31-39-04-11-83:/usr/local/bin# bash --version
GNU bash, version 4.1.5(1)-release (i686-pc-linux-gnu)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
root@domU-12-31-39-04-11-83:/usr/local/bin# uname -a
Linux domU-12-31-39-04-11-83 2.6.35-22-virtual #35-Ubuntu SMP Sat Oct 16 23:57:40 UTC 2010 i686 GNU/Linux
root@domU-12-31-39-04-11-83:/usr/local/bin# echo "Reboot your instance!"
-bash: !": event not found
Can anyone please explain what is "bash events?" I've never heard this concept before. Also, how should I output "!" at the end of the sentence?
<<<operator. All I do know is that when bash is used unmediated by anything else, the problem admits of a solution; see above. – MadHatter Jan 23 '15 at 08:36echo 'Reboot your instance!'works as well, as characters in between'makes the shell interpret them literally. – leetbacoon Aug 29 '20 at 23:27!char. – Gabriel Staples Jan 25 '21 at 04:37echo 'Reboot '"${machine_name}"' now!'– leetbacoon May 15 '21 at 19:36ruby <<< "puts 'Hello, world"'!'"'"ruby <<< 'puts "Hello, world!"'– Jasen May 16 '21 at 22:06