How to remove everything before the first space in Sed or Awk
Hi, I have a list of names and numbers that looks like this:
john doe - 5551236565 jane doe - 5559875656 Now, obviously, the first names are different lengths, as are the last names. I need to know how to remove all the characters in each line up until the first space so that the output looks like this: doe - 5551236565 doe - 5559875656 Thanks. |
Code:
sed 's/[^ ]* //' file.txt |
All times are GMT -5. The time now is 01:19 PM. |