summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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