How to extract a part of a line by sed?
I have a variable that contains the following line of text:
How can I extract someusername from this line by sed?
Naturally, someusername and the six digits of random numbers may change, only the '-' separator between them is always unchanged.
(I could do the task in a bash script without sed, but this would be used in a procmailrc file, where I do not think the same construct would work, so I'd prefer sed)
Last edited by J_Szucs; 02-15-2003 at 06:29 PM.