'all files' switch for grep?
If I type 'grep alias .bashrc' a whole load of stuff comes up. However, if I type 'grep alias *' nothing comes up. Is there some switch for including 'hidden' files - like the -a switch for ls?
|
Not known according to the man page. But
Code:
grep alias .* * jlinkels |
The wildcards are expanded by the shell, not by grep.
If you have a directory containing these files: Code:
.hidden Code:
grep alias * Code:
grep alias file another |
All times are GMT -5. The time now is 01:33 AM. |