#!/bin/sh # For each newline-delimited line from stdin, execute: command line. # example: find . | nargs echo the argument is: while read line do "$@" "$line" done