I know this is not exactly where this message belongs but its the closest I can find as I know I will have to use regular expressions to do what Im asking for.
I have a unique situation I am working. I have groups lists from 4 servers. I have combined them all into one list. There are duplicate lines from each server with different numbers at the end of each line which seem to represent the number of posts in the group. Here is what I want to do. I want to use a unix like utility to automatically remove the numbers at the end of each line but I dont know which unix utility would be right to do this. Any suggestions on what one to use and maybe an example of how to use it to remove the numbers would be ever so greatly appreciated. After that I can easily use uniq.exe to rid the duplicate lines.
Im far from a unix expert but am somewhat familiar with many of these fine utilities.
I need to automatically process this file with a utility as there seem to be millions of lines in my groups list and would take far too long to edit line by line with a text editor.
These lines represent an example of the data Im working with in this file.
I want to delete the space and the number at the end of each line.
alt.binaries.ebook 220
alt.binaries.ebook 254
alt.binaries.ebook 292