From dea905406ae7d97f83644ad819d2249933d532f4 Mon Sep 17 00:00:00 2001 From: emma Date: Mon, 7 Nov 2022 00:47:31 -0500 Subject: [PATCH] trailing commas --- tomcat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tomcat b/tomcat index 381e5de..781f9d7 100755 --- a/tomcat +++ b/tomcat @@ -28,7 +28,7 @@ VAL=$(if test -e "$argv2"; then sed 's/^ //g') if test -n "$ARR"; then - printf "%s\n" "$VAL" | sed 's/,"/\n"/g' | tr -d '"' | head -n "$ARR" |\ + printf "%s\n" "$VAL" | sed 's/",/"\n/g' | tr -d '"' | head -n "$ARR" |\ tail -n 1 else printf "%s\n" "$VAL" | tr -d '"'