I'm working with a couple different screen sessions, and I want a way to detach and reattach without typing out the whole command with screen ID. I'm working with screen names that start with <PID>.mc255xx, where "xx" is a 2-digit number. I can reattach with "screen -r mc255xx" but I'd like an alias command "sr xx" for reattaching. Here's what I'm trying, to no avail:
alias sr='screen -r $(echo "mc255" + %1)'
Thanks in advance for helping a linux noob.