summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2018-06-22 09:58:05 +0000
committerIan C <ianc@noddybox.co.uk>2018-06-22 09:58:05 +0000
commit43ba34a13a3e302bed5238af40969a0748832fce (patch)
tree9b31f2f561efb4796044dbf879603d98eabbf19f
parentb9bb431676f1cdace8788af35de14803683d5ba3 (diff)
Added str.sh
-rwxr-xr-xstr.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/str.sh b/str.sh
new file mode 100755
index 0000000..e8fa4de
--- /dev/null
+++ b/str.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+first=1
+
+for i in $* ; do
+ if [ $first -eq 1 ] ; then
+ first=0
+ else
+ echo -n ,
+ fi
+
+ echo -n "'$i'"
+done
+
+echo