str=<1.2.3> str1="${str%\<}" str2="${str1#\>}" echo $str2
echo "<1.2.3>" | sed -e 's/^\<//' -e 's/\>$//'
No comments:
Post a Comment