Skip to content

Instantly share code, notes, and snippets.

@colindean
Created May 17, 2014 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colindean/3ff9955ec4fabee32137 to your computer and use it in GitHub Desktop.
Save colindean/3ff9955ec4fabee32137 to your computer and use it in GitHub Desktop.
Simple tool for turning a space-delimited list of things into a newline list, primarily for use in bash for loops
#!/bin/sh
ALL_ARGS=$@
echo $ALL_ARGS | tr -s ' ' '\n'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment