JonathanRyan.org

Oops, I broke grep.

jon@jon-desktop:~/greptest$ echo “test” > blah
jon@jon-desktop:~/greptest$ echo “foo” > “-v”
jon@jon-desktop:~/greptest$ grep foo *
test
jon@jon-desktop:~/greptest$ grep test *
jon@jon-desktop:~/greptest$ echo “foo” > bar
jon@jon-desktop:~/greptest$ grep test *
bar:foo
jon@jon-desktop:~/greptest$ grep foo *
blah:test

Now try fixing it.  -v is the verbose flag for pretty much anything.

2008-02-29 01:45 by Jon, Filed under:Uncategorized   2 Comments »

Comments

  1. anon Says :

    try “–”

    e.g. grep test — *

    2008-06-01 02:58 Permalink
  2. anon Says :

    *sigh*

    That’s supposed to be dash dash not a long dash

    2008-06-01 02:59 Permalink

Leave a comment

(required)

(required)

RSS feed for comments on this post.

Powered by WordPress , Theme Ported to Wordpress by Liu Xun. Original Design by Cathayan

liuxun at gmail dot com