Skip to content

Instantly share code, notes, and snippets.

@nlitsme
Last active August 29, 2015 14:08
Show Gist options
  • Save nlitsme/788f133c484c8841df06 to your computer and use it in GitHub Desktop.
Save nlitsme/788f133c484c8841df06 to your computer and use it in GitHub Desktop.
simplify xargs -0
#!/bin/sh
tr -d "\r" | tr "\n\\" "\0/" | xargs -0 "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment