sed or awk...
I'm looking for a sed or awk one(ish) liner to remove all characters at the beginning of a line, up through the first dash.
Example:
blah-ditty-blah-3
would turn into:
ditty-blah-3
I'm assuming sed or awk would be the thing to use, but I'm having an issue figuring out how to get this done. Anyone have a suggestion?
Example:
blah-ditty-blah-3
would turn into:
ditty-blah-3
I'm assuming sed or awk would be the thing to use, but I'm having an issue figuring out how to get this done. Anyone have a suggestion?
