Re post #14: i think you're asking for
Code:
echo 'string1#m1asdfe23easdf23wefas' | sed 's/.*#..\(.*\)/\1/'
asdfe23easdf23wefas
Basically, the \(....\) is a capture, that is then o/p by the \1.
See the sed ref for more details
In fact, we can drop the escaping backslashes by using the -r switch
Code:
echo 'string1#m1asdfe23easdf23wefas' | sed -r 's/.*#..(.*)/\1/'
asdfe23easdf23wefas