Using XARGS to feed a list of files to another command

 

For example, to pass a list of file names to cp you could use the following:
ls | head | xargs -i echo cp {} destination/

This will take a list of files, use head to get the top 10, then each filename gets passed to cp by using the curly brackets