trailing commas
This commit is contained in:
@@ -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 '"'
|
||||
|
||||
Reference in New Issue
Block a user