We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37bd18e commit d1291d8Copy full SHA for d1291d8
join_string.sh
@@ -0,0 +1,8 @@
1
+#!usr/bin/shell
2
+
3
+function join () {
4
+ local sep=$1
5
+ shift
6
+ builtin echo "$1$(shift ; for x do builtin echo -n "$sep$x"; done)";
7
+}
8
split_string.sh
@@ -0,0 +1,7 @@
+function split () {
+ local IFS="$1"
+ builtin echo $(for x in $2; do builtin echo -n "$x "; done);
0 commit comments