So, your code probably actually looks like this:
s!.*pts/\(\[0-9\]\[0-9\]*\).*!\1!Right? One point, s/// isn't "sed" ... it's "substitute". Now what do you really hope to do? And how are you calling it? If this you are doing this on a command line, how are you calling it exactly? ('Cuz there are better ways to quote than with all the slashes.) And what do you really mean that you want when you say "strip the tty off"?
In reply to Re: using sed buffers
by sauoq
in thread using sed buffers
by floobit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |