Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Quick Question about Wildcards in Shell and with grep
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Schmolch
l33t
l33t


Joined: 16 Jun 2002
Posts: 746
Location: Germany

PostPosted: Tue Nov 23, 2004 12:34 pm    Post subject: Quick Question about Wildcards in Shell and with grep Reply with quote

Hi All!

The Shell Tutorials say "*" is a wildcard for zero or more but when i want to grep for * it does not see * as wildcard. For grep i have to use the "." character.
Why is this?
I thought grep is a command and the rest what follows is.. err.. shell?

sorry, bad english + low clue = strange questions :-)
Back to top
View user's profile Send private message
BlackEdder
Advocate
Advocate


Joined: 26 Apr 2004
Posts: 2588
Location: Dutch enclave in Egham, UK

PostPosted: Tue Nov 23, 2004 12:37 pm    Post subject: Reply with quote

The rest that follows are inputs for grep and dependent on the way grep handles things. Grep uses regexp for matching and . is any character in a regexp. .* would be zero or more of any character.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum