logoalt Hacker News

js2today at 2:09 AM0 repliesview on HN

It's that way so that you can grep multiple files with a single pattern. It would be odd for the pattern to come after the file arguments. It also allows the files to be optional so that it can grep stdin.