Created
March 27, 2018 08:32
-
-
Save pogin503/1368a7c30d9fa4a518e0bd30ffb1d237 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
TABLES="table1 table2 table3" | |
str=$(IFS=' '; for x in $TABLES; do printf " -t %s" "$x"; done) | |
echo "$str" | |
#=> -t table1 -t table2 -t table3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment