Howto escape the wildcard or asterisk character in bash?

By neokrates, written on August 30, 2010

bash   snippet

Rate it
  • 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
    Loading ... Loading ...
Ad
Poll
  • Best general purpose programming language is?

    • Java (73%, 8 Votes)
    • Python (9%, 1 Votes)
    • C# (9%, 1 Votes)
    • Other (9%, 1 Votes)
    • C/C++ (0%, 0 Votes)
    • Basic (0%, 0 Votes)
    • PHP (0%, 0 Votes)
    • Ruby (0%, 0 Votes)
    • Scala (0%, 0 Votes)

    Total Voters: 11

    Vote

    Loading ... Loading ...
Feeds:
  • bodytext bodytext bodytext
Most popular search terms:

Option one:

name=Neokrates
text="Hello $name, please don't escape the *"echo "$text"

 
prints: Hello Neokrates, please don’t escape the *

Option two:

name=Neokrates
text="Hello $name, please don't escape the *"echo "$text"

 
prints: Hello $name, please don’t escape the *

 
Does that help to solve your problem?
VN:F [1.8.5_1061]
Rating: -2 (from 2 votes)
0 votes 'YES'  2 votes 'NO'
TAGS
RELATED
Pages
Posts
    nope :(
SOCIAL
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • BlinkList
  • Blogosphere News
  • E-mail this story to a friend!
  • Furl
  • LinkArena
  • Live
  • MisterWong
  • Print this article!
  • StumbleUpon
  • Technorati
  • Webnews.de
  • YahooMyWeb

Leave a Reply