in reply to using sed buffers
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"?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: using sed buffers
by JavaFan (Canon) on May 02, 2012 at 22:48 UTC | |
by sauoq (Abbot) on May 03, 2012 at 00:12 UTC | |
|
Re^2: using sed buffers
by floobit (Initiate) on May 02, 2012 at 21:46 UTC | |
by sauoq (Abbot) on May 02, 2012 at 21:50 UTC |