Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-21-2007, 10:38 AM   #1
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
I have 2 text files from which i need to remove duplicates

I have 2 text files with names.
One is a big list with xxxx amount of names and the text file is a small list with xxx amount of names. The smaller list names also appear on the bigger list. Now i need a way to compare both list and remove ALL the names that appear on both lists.

Know what i mean?
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2007, 10:55 AM   #2
Lace
Too lazy to set a custom title
 
Lace's Avatar
 
Industry Role:
Join Date: Mar 2004
Posts: 16,116
get a list manager...
__________________
Your Paysite Partner
Strength In Numbers!
StickyDollars | RadicalCash | KennysPennies | HomegrownCash
Lace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2007, 10:56 AM   #3
Voodoo
♥ ♦ ♣ ♠
 
Voodoo's Avatar
 
Industry Role:
Join Date: Sep 2002
Posts: 10,592
http://www.flashpeak.com/slimlist/slimlist.htm
__________________

"I'm selflessly supporting the common good, but only coincidentally looking out for No.1."
Voodoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2007, 10:56 AM   #4
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
I have list managers but they can only remove the duplicates and not the original name as well. I want any duplicate name to be gone. So it doesnt appear at all on the list anymore.
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2007, 10:58 AM   #5
Voodoo
♥ ♦ ♣ ♠
 
Voodoo's Avatar
 
Industry Role:
Join Date: Sep 2002
Posts: 10,592
SlimList will remove duplicate entries, but only the duplicate.

Are you looking to do something like this:
LIST A: name1 name2 name3 name4
LIST B: name1 name5 name6 name7

ACTION: remove name1 from both lists.

Is that what you're talking about? Or simply removing duplicates?
__________________

"I'm selflessly supporting the common good, but only coincidentally looking out for No.1."
Voodoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2007, 10:59 AM   #6
ne0
Confirmed User
 
Join Date: May 2006
Location: brazil
Posts: 781
Quote:
Originally Posted by Dirty F View Post
I have 2 text files with names.
One is a big list with xxxx amount of names and the text file is a small list with xxx amount of names. The smaller list names also appear on the bigger list. Now i need a way to compare both list and remove ALL the names that appear on both lists.

Know what i mean?
if the names are one per line, and they appear the same way on the first and the second list, you can do this using a *nix server:
cat list1.txt list2.txt |sort |uniq > list3.txt
the list3.txt will contain both lists, ordered and without the dupes.
__________________
hai2u
ne0 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2007, 11:00 AM   #7
Lace
Too lazy to set a custom title
 
Lace's Avatar
 
Industry Role:
Join Date: Mar 2004
Posts: 16,116
Or you could throw it in a XLS, sort and remove by hand.
__________________
Your Paysite Partner
Strength In Numbers!
StickyDollars | RadicalCash | KennysPennies | HomegrownCash
Lace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2007, 11:01 AM   #8
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
Quote:
Originally Posted by Voodoo View Post
I dont see how this can do what i need.
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2007, 11:03 AM   #9
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
Quote:
Originally Posted by Lace View Post
Or you could throw it in a XLS, sort and remove by hand.
If i would want to do it by hand i wouldnt ask for a solution here
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2007, 11:14 AM   #10
moogle
Confirmed User
 
Join Date: Sep 2007
Location: Somewhere over the rainbow.... ICQ-474167022
Posts: 314
http://www.download.com/Duplicate-Te...html?tag=lst-1

__________________


moogle is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2007, 11:16 AM   #11
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
Quote:
Originally Posted by moogle View Post
Its the same as others posted. A duplicate content remover. Its not what i need.

Last edited by Dirty F; 12-21-2007 at 11:18 AM..
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2007, 11:28 AM   #12
Zoose
Confirmed User
 
Join Date: Aug 2006
Posts: 268
Code:
<?php

$list1 = file( "list1.txt" );
$list2 = file( "list2.txt" );

for( $i=0; $i<count($list2); $i++ ){

if( in_array( $list2[$i], $list1 ) ){ /* do nothing */ } else { $new_array[] = $list2[$i]; }

}

echo "<pre>";
print_r( $new_array );
echo "</pre>";

?>
Zoose is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2007, 11:41 AM   #13
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
Quote:
Originally Posted by Zoose View Post
Code:
<?php

$list1 = file( "list1.txt" );
$list2 = file( "list2.txt" );

for( $i=0; $i<count($list2); $i++ ){

if( in_array( $list2[$i], $list1 ) ){ /* do nothing */ } else { $new_array[] = $list2[$i]; }

}

echo "<pre>";
print_r( $new_array );
echo "</pre>";

?>
Totally appreciate it. Even more if it was 2 mins earlier before i paid someone 25 bucks for the same thing
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2007, 12:02 PM   #14
UniqueD
Confirmed User
 
UniqueD's Avatar
 
Industry Role:
Join Date: Aug 2004
Location: Barcelona
Posts: 1,022
paste into excel and run a macro to remove duplicates, do a google search for excel remove dupes.
UniqueD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.