x=$(find . -name \"*.txt\") echo $x
if I run the above piece of code in Bash shell, what I get is a string containing several file names separated
# Doesn't handle whitespace for x in `find . -name "*.txt" -print`; do process_one $x done or # Handles whitespace and newlines find . -name "*.txt" -print0 | xargs -0 -n 1 process_one