Follow #3736 Two more modes: 1. interactive mode `--stdin` which reads pathnames from the standard input. 2. all patterns mode `--all` which prints all pattern matches instead of only the last one.