I am attempting to write a script that will pull out NTLM hashes from a text file that contains about 500,000 lines of data. Not all accounts contain hashes and I only need the ones that do contain hashes. 
Here is a sample of what the data looks like:

Mango Chango A (a):$NT$547e2494658ca345d3847c36cf1fsef8:::

There are thousands of other lines in the file, but that particular line is what I need taken out of the file. There are about 100 lines that apply to that and I do not want to manually go through the entire file searching for that. 
Is there an easy script or something I can run in Linux to pull lines that follow that pattern out of the file?
Thank you!
grep '\$NT\$'filename
If there might be other occurrences of $NT$ outside the field you're looking for, you could be more specific - this will find only lines that have it in the second colon-delimited field:
awk -F: '$2 ~ /\$NT\$/'filename
Script to pull hashes out of large text file