echo "/home/jadmin/server/server005A1" | sed 's/.*\([0-9]\)\s*$/\1/g'
Response: 1