If for example I run a command from the terminal like this:
$ find . | xargs grep something
The terminal then goes in a sort of pending state and I can type in characters and whatnot as I wait for the command to start printing stuff to stdout.
What happens with that input? Is it saved somewhere, does it do anything at all? I know I can use it to pass signals to the application (such as SIGINT by way of typing in ^C) but what about some other input? I'm referring specifically to the cases where the application is not prompting the user for input.
Thanks and apologies if this is a bit obvious.
findandxargsare better used withfind … -print0 | xargs -0to overcome issues with spaces or newlines in file names. You'll find that your command won't work for a file called, let's say "foo bar". – slhck♦ Jan 14 at 15:42