GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   2 txt files, how to remove doubles? (https://gfy.com/showthread.php?t=352588)

justsexxx 09-06-2004 12:08 PM

2 txt files, how to remove doubles?
 
I have 2 huge txt files with galleries. One with valid url's, and one with url's which don't work anymore, cheated etc.

SInce they contain over 1000 url's each, it is a lot of work to find what are double etc.

Is there an easy way to find which url's are double. They should be removed from the "good" list.

so good.txt bad.txt and url's listed on bad.txt should be removed from good.txt in case they are listed there.

How todo this quick and easy?

Andre

Basic_man 09-06-2004 12:10 PM

Any basic programmers out there can do this very quick!

justsexxx 09-06-2004 12:22 PM

I need one that is ready to use. Money is not an issue:)

Dirty F 09-06-2004 12:23 PM

I'll help ya, check icq.

justsexxx 09-06-2004 12:33 PM

Quote:

Originally posted by Battuss
I'll help ya, check icq.
Thanks for your help buddy

Andre

JulianSosa 09-06-2004 12:49 PM

Quote:

Originally posted by justsexxx
I have 2 huge txt files with galleries. One with valid url's, and one with url's which don't work anymore, cheated etc.

SInce they contain over 1000 url's each, it is a lot of work to find what are double etc.

Is there an easy way to find which url's are double. They should be removed from the "good" list.

so good.txt bad.txt and url's listed on bad.txt should be removed from good.txt in case they are listed there.

How todo this quick and easy?

Andre


I think this works

cat old.txt | uniq > new.txt

Trixxxia 09-06-2004 11:33 PM

Quote:

Originally posted by justsexxx
Thanks for your help buddy

Andre

Justsexxx - let me know if you got what you need.

I have a macro in excel to do that for me.

rowan 09-06-2004 11:35 PM

To remove the entries in bad.txt from good.txt:

cat good.txt | fgrep -vf bad.txt > newgood.txt

I think that should do the trick.


All times are GMT -7. The time now is 08:05 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123