On 16.03.2017 06:33, Marc Chamberlin wrote:
On 03/15/2017 09:45 PM, L A Walsh wrote:
Marc Chamberlin wrote:
Ok I am puzzled, why does grep fail ...
Here is an example of a failure using a simple grep command -
darkstar:/usr/lib/systemd/system # grep run * grep: invalid option -- '.' Usage: grep [OPTION]... PATTERN [FILE]...
Try grep -- run *
Likely some file name is being taken as a grep option.
OKeyDoKey! Didn't see that one coming or in the documentation! A magic dash dash does the trick! Thanks L A Walsh for the proper incantation.
Marc...
Another possibility would be: grep run ./* Side note question: Is there an intriguing reason to name a file "-.slice" -- Cahn's Axiom: When all else fails, read the instructions. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org