playing with variables (need help)
Hello, I've got a simple variable which will have values similar to this:
VAR1="3270/tty0"
VAR1="3270/tty1"
VAR1="3270/tty3"
and so on. I need to somehow strip it, so I would get only the ending numbers, meaning 0, 1, 3, etc.
So I would need to drop 3270/tty and only end-up with 0, 1, 3. I know is somehow possible, but don't know how.
If anybody knows, help would be appreciated.
|