Skip to content

Instantly share code, notes, and snippets.

@takus
Created October 13, 2011 15:34
Show Gist options
  • Save takus/1284539 to your computer and use it in GitHub Desktop.
Save takus/1284539 to your computer and use it in GitHub Desktop.
Give multi arguments to cp when using xargs
#!/bin/sh
find . -name '*.pdf' | xargs -i cp {} /tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment