: I recently wanted to find all ocurrences of the string '-in2' in a selection
: of source files. Naturally enough, I decided to use
: grep '-in2' *
: but instead of the expected output, I got
: grep: illegal option -- 2
: followed by the usuage template. Eh? Can anyone tell me whats going on?
: I guess it has something to do with the `-', but as it is inside the quotes
: it shouldn't do, should it? Any help would be gratefully received!
: Oh, if it makes any difference, I am using csh (interactively only :) on an
: alpha box running OSF/1 v3.2.
: Cheers...
This has now been solved. Thanks to all who emailed me. :*) FWIW, the problem
arose because although the quotes stop the shell getting upset, they are
removed by grep, so grep thought -in2 was an option list, hence the error.
So there you go. :^)
========================= john.en...@bbsrc.ac.uk =====================///===