KO Myung-Hun wrote:
+echo "$v" | tr -d "$cr$nl"

How about this instead?

  printf '%s' "$v"

This avoids the need for cr and for tr, which is simpler and a bit faster. The script is already using printf so this shouldn't be a portability issue.


Reply via email to