file editing in a bash script
I have a file that looks like this:
User fu (UID=xxx) logged on foo.bar.edu (666.666.666.666) at 18:43:27 10.21.2002
User foo (UID=xxx) logged on bar.bar.edu (666.666.666.555) at 2:17:32 10.23.2002
User bah (UID=xxx) logged on fu.bar.edu (666.666.666.444) at 4:38:52 11.02.2002
And i need to cut all the text up to the first parenthese and after the second parenthese so i get a list like this:
How would i go about doing that in a bash script?