Passing exclamation signs to a bash script

Lets say I want to pass a exclamation sign to a bash script (!). How do I do that? If I pass the string: aaa!bbb I get the error: -bash: !bbb: event not found
LVL 2
itniflAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
woolmilkporcConnect With a Mentor Commented:
scriptname aaa\!bbb

wmp
0
 
woolmilkporcConnect With a Mentor Commented:
... or

scriptname 'aaa!bbb'
0
 
itniflAuthor Commented:
Yes, offcourse, what was I thinking? :/
0
All Courses

From novice to tech pro — start learning today.