I have a script, run.sh, that looks like this:#!/bin/bashFILES=$(find corpus/ -type f)for i in $FILESdo    ./individual.sh $idoneIt runs without problem.I want to do away with the run script by piping each file from find to ./individual.I would think that I could just do:find corpus/ -type f | ./individual.shBut in trying that it just pipes in a file with file name  (leading to an error).What is the proper syntax for this?
Confused about piping commands from find to commandX?
command line;find;pipe
You'll want to use find's -exec option:find corpus/ -type f -exec ./individual.sh {} \;For each match that find finds, it'll execute individual.sh, replacing {} with the name of the file it found. \; is how you end an exec with find.The reason your pipe doesn't work is that the output from find is being provided to individual.sh via STDIN, not as an argument. Your script would need to know to look for EITHER input, or arguments through STDIN to make use of this.