is there a program out there that can take a .txt file and strip out entries under certain conditions, ie. duplicates etc.
is there a program out there that can take a .txt file and strip out entries under certain conditions, ie. duplicates etc.
Something like this?
http://vim.wikia.com/wiki/Uniq_-_Rem...uplicate_lines
shbris (17-09-2009)
cheers i'll look into it! don't u hate it when there's not a windows solution lol
just got windows version of vim, will it still work the same on windows version?
excellent, had a play, works perfectly!!
i'm sorry to say i'm a child of the microsoft generation lol, the thought of anything non GUI or linux makes me cry a little inside
name@email.comname@email.com
on single line, got a cure for that?
(sorry for all questions)
You'll need to use a regular expression, something like "s/\.com/\.com\n\r/g", of course you'll need to do that for each tld at the end of the domain. If you need to do it heavy duty, then it might be worth your time to write a simple vim script to loop through a list of tlds.
lol thanks for all this help. list isn't absolutely massive (club mailing list) but just wanted to learn to do it automatically. i could do "s/\@/\@\n\r/g" then to find any line with two @'s in?
It's no problem at all.
If you use \@, you'll end up with something like this:
name@
comname@
com
So you'll have the same problem as before. It'd be a lot easier if it was a set of comma separate values, then you could just substitute the comma for a CRLF.
There are currently 1 users browsing this thread. (0 members and 1 guests)