trailing commas
This commit is contained in:
2
tomcat
2
tomcat
@@ -28,7 +28,7 @@ VAL=$(if test -e "$argv2"; then
|
|||||||
sed 's/^ //g')
|
sed 's/^ //g')
|
||||||
|
|
||||||
if test -n "$ARR"; then
|
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
|
tail -n 1
|
||||||
else
|
else
|
||||||
printf "%s\n" "$VAL" | tr -d '"'
|
printf "%s\n" "$VAL" | tr -d '"'
|
||||||
|
|||||||
Reference in New Issue
Block a user