xargs allows you to build command lines from standard input, reading items separated by blanks or newlines.

These are some examples:

# list contents of all folders from / (not recursive)
find / -type d -maxdepth 1 | xargs ls
# download files from a list of URLs
cat urls.txt | xargs wget
# get basenames of a files list
# -L limits the number of arguments per command line
find . -type f | xargs -L 1 basename