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)
-   -   how to find the duplicate urls within tousands (https://gfy.com/showthread.php?t=607577)

zentz 05-08-2006 11:17 PM

how to find the duplicate urls within tousands
 
i have a .txt file with tousands of urls. now my script has reported that there are 20 duplicate urls but it cant tell which ones are they. is there a script or a software that can find and list the duplicates for me so i can fix them properly ?

pussyluver 05-08-2006 11:26 PM

Use the search function in notepad. Start at the top.

Study Visual Basic and write a program.


There's a couple of ideas. Hope someone has something a bit more direct.

latinasojourn 05-09-2006 12:09 AM

Links Suite 4

pudcat 05-09-2006 12:25 AM

if you know php or some other scripting language then it's pretty damn easy.

One method:

split it into an array
loop through the array
check if you've already seen that url, if not then remember it
print out a list of urls that you've seen

probbaly a cleaner way though I'm lazy

spunkmaster 05-09-2006 12:34 AM

Go to download.com and get one of the super free notepad programs
and do a search and you'll find them really fast.

darksoul 05-09-2006 12:42 AM

From shell:
Code:

sort file.txt|uniq -d


All times are GMT -7. The time now is 07:01 PM.

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