MAC OS X, Linux, Windows and other IT Tips and Tricks
echo "/home/jadmin/server/server005A1" | sed 's/.*\([0-9]\)\s*$/\1/g' Response: 1
echo "/home/jadmin/server/server005A1" | sed 's/.*\([0-9]\)\s*$/\1/g'