xargs

Build and execute command lines from standard input

Common Flags

-I REPLACE_STR Replace all instances of REPLACE_STR with the input item from stdin

Examples

Execute a command

      ls | xargs file
    

Execute the file command for each file in the current directory