From 43ba34a13a3e302bed5238af40969a0748832fce Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 22 Jun 2018 09:58:05 +0000 Subject: Added str.sh --- str.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 str.sh (limited to 'str.sh') 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 -- cgit v1.2.3