Tuesday, 20 August 2013

Deleting last column of a large text file

Deleting last column of a large text file

I have a text file, I want to remove the last column from it. It looks
something like this :
4095, 0, 0, 17;
4095, 0, 0, 17;
4095, 0, 0, 17;
4095, 0, 0, 17;
4095, 0, 0, 17;
4095, 0, 0, 17;
4095, 0, 0, 17;
4095, 0, 0, 17;
I want this to look something like this :
4095, 0, 0;
4095, 0, 0;
4095, 0, 0;
4095, 0, 0;
4095, 0, 0;
4095, 0, 0;
4095, 0, 0;
4095, 0, 0;
4095, 0, 0;
I would like some pointers to do this either in notepad ++ using regex or
writing a program for this.
Thanks

No comments:

Post a Comment