Posts: 3
	Threads: 1
	Joined: Feb 2014
	
	
 
	
	
		Pretty much what I am trying to do is
I have 1 file with a bunch of Usernames, I have another file with username:hashs.
Now I want to match these so The usernames from first file matches with username:hashs from the second file, and get a new username:hash file.
Please help :x
	
	
	
	
	
 
 
	
	
	
		
	Posts: 5,232
	Threads: 233
	Joined: Apr 2010
	
	
 
	
	
		if have you have 2 times the same username, how would it make a difference if you just replace them?
	
	
	
	
	
 
 
	
	
	
		
	Posts: 3
	Threads: 1
	Joined: Feb 2014
	
	
 
	
	
		Sorry if I did not explain my self correct, I got a list of usernames off a website, I have another database with user:hash, now what Im trying to do is check if any of the list of users match the other list of user:hash. If they do then put them into a separate file as user:hash
	
	
	
	
	
 
 
	
	
	
		
	Posts: 143
	Threads: 9
	Joined: Dec 2012
	
	
 
	
	
		Windows or Linux? It's trivial in Linux, using grep(1)
	
	
	
	
	
 
 
	
	
	
		
	Posts: 3
	Threads: 1
	Joined: Feb 2014
	
	
 
 
	
	
	
		
	Posts: 117
	Threads: 0
	Joined: Nov 2013
	
	
 
	
		
		
		02-17-2014, 01:15 AM 
(This post was last modified: 02-17-2014, 01:36 AM by coolbry95.)
		
	 
	
		Just use 
unxutils grep. Just a single executable. So if I understand correctly do something like 
Code:
for i in $(cat usernamelist); do grep $i user:hash; done
 for linux. For windows use powershell maybe. 
Code:
foreach ($i in (Get-Content .\userlist)) {Select-String $i .\user:hash}
 That is only powershell.