Originally posted by jimieee
a) stop it from crashing b) get the other details to be written to a text file.
crashing? Maybe "grep" is just a little buzzy.. You didn't specify any file names, so it's waiting for you to type them. Your machine hasn't crashed. it's just waiting for input. Press Ctrl+D to send the end-of-file marker, or press Ctrl+C to terminate the program.
If you use something like "find ... | grep " the output of 'find' will be passed to grep as if you've typed it yourself, and you can use "command < input.txt" as well.
"command > file.txt" redirects the output to a file, and "command >> file.txt" adds the output to the end of the file.