Skip to content

Instantly share code, notes, and snippets.

@caruccio

caruccio/spread.sh

Last active Sep 26, 2018
Embed
What would you like to do?
Spread parameters
$ function spread_parameter {
local p="$1"
shift
local IFS=","
eval "echo $(echo "$p\ {$*}")"
}
$ spread_parameter --include '*.jpg' '*.gif' '*.svg'
--include *.jpg --include *.gif --include *.svg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment