In this case, a space is the delimiter.
cat file | sed 's/\ [^\ ]*$//'
In this case a : is the delimiter.
cat file | sed 's/\:[^\:]*$//'
In this case a , is the delimiter.
cat file | sed 's/\,[^\,]*$//'
In this case, a space is the delimiter.
cat file | sed 's/\ [^\ ]*$//'
In this case a : is the delimiter.
cat file | sed 's/\:[^\:]*$//'
In this case a , is the delimiter.
cat file | sed 's/\,[^\,]*$//'
Leave a Reply