in HPUX shell script language, how do I trim the last character of string? For example, i need to capture the value of the string, and at the end it has "^M" (some sort of windows CRLF. I need to trim it out.
$ID = "1213234^M"
i want to trim it to "1213234"
Thanks!
$ID = "1213234^M"
i want to trim it to "1213234"
Thanks!