Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'View a Lord of the Rings timeline easter egg in calendar' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
View a Lord of the Rings timeline easter egg in calendar
Authored by: SeanAhern on Jan 13, '04 04:52:03PM
I can't reliable remember whether grep's command-line syntax is "grep pattern file" or "grep file pattern."

Here's a way that I remember. Grep searches multiple files for one pattern. That means that you specify the pattern first, then a bunch of files. "grep pat *" searches all files for the pattern "pat". With this in mind, it's relatively easily to reminder, since "grep * pat" is simply never seen.

Don't know if this helps, but it works for me.

---
-Sean

[ Reply to This | # ]