Howto escape the wildcard or asterisk character in bash?

By neokrates, written on August 30, 2010

bash   snippet

  • Join date: 11-30-99
  • Posts: 224
View Counter:
  • 330 views
Rate it
Ad
Poll
  • Most important features for perfect mp3 player are?

    View Results

    Loading ... Loading ...
Feeds:
  • bodytext bodytext bodytext

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 *

Be Sociable, Share!
 
Does that help to solve your problem?
VN:F [1.8.5_1061]
Rating: -3 (from 3 votes)
0 votes 'YES'  3 votes 'NO'
TAGS
RELATED
Pages
Posts
SOCIAL
Be Sociable, Share!

Leave a Reply