ddeerr Posted November 18, 2006 Share Posted November 18, 2006 I have a one dimension array with different path listed in. Some of the path are 90% identical but i would like to have exactly the most common path. Do you have an idea how to do that ? tx Link to comment Share on other sites More sharing options...
/dev/null Posted November 18, 2006 Share Posted November 18, 2006 I have a one dimension array with different path listed in.Some of the path are 90% identical but i would like to have exactly the most common path.Do you have an idea how to do that ?txSort the array (_ArraySort) then count how many consecutive array entries you find. Remember that number and the first index for that particular string. Only remember the largest number of consecutive strings you find and you will know the index of the "most common path".CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
ddeerr Posted November 18, 2006 Author Share Posted November 18, 2006 Sort the array (_ArraySort) then count how many consecutive array entries you find. Remember that number and the first index for that particular string. Only remember the largest number of consecutive strings you find and you will know the index of the "most common path".CheersKurtThanks i'll try it to find my prefered path , i'm french sorry Link to comment Share on other sites More sharing options...
/dev/null Posted November 18, 2006 Share Posted November 18, 2006 Thanks i'll try it to find my prefered path , i'm french sorry why are you sorry to be french?CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
ddeerr Posted November 18, 2006 Author Share Posted November 18, 2006 why are you sorry to be french?CheersKurtbecause i'm not speaking english like an english and maybe when i said somthing it make you joke cause it's a little bit strange. Link to comment Share on other sites More sharing options...
/dev/null Posted November 18, 2006 Share Posted November 18, 2006 (edited) because i'm not speaking english like an english and maybe when i said somthing it make you joke cause it's a little bit strange.never mind as long as the forum members understand what you are asking CheersKurt Edited November 18, 2006 by /dev/null __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now