Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I've tried this.

grep -r thanks *                                      slave-iv
grep: invalid option -- '@'
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.

Here's what the directory looks like. They're log files from pidgin.

ls -1
-100000139702926@chat.facebook.com
-100001138571192@chat.facebook.com
-1021869012@chat.facebook.com
-12120618@chat.facebook.com
-1251570038@chat.facebook.com
-1269333626@chat.facebook.com
-1394365872@chat.facebook.com
-1657581332@chat.facebook.com
-211203163@chat.facebook.com
-505152641@chat.facebook.com
-549333601@chat.facebook.com
-557177029@chat.facebook.com
-573222477@chat.facebook.com
-584051302@chat.facebook.com
-65000319@chat.facebook.com
-663869224@chat.facebook.com
-664953132@chat.facebook.com
-755682783@chat.facebook.com
share|improve this question

marked as duplicate by lesmana, rahmu, slm, Anthon, jasonwryan Aug 25 '13 at 18:16

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

up vote 3 down vote accepted

Doh! I just realized after asking my problem is not the @ it's the - this works

grep -r thanks -- *   
share|improve this answer
    
More info –  Michael Mrozek Nov 10 '10 at 18:11
    
@Michael: Isn't this is one more exact duplicate? –  Stéphane Gimenez Aug 12 '11 at 15:37

Not the answer you're looking for? Browse other questions tagged or ask your own question.