hashcat Forum

Full Version: how do i remove all duplicate words from a txt file?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I found a script to do this online in my browser but was wondering if hashcat had a build in function for it

http://www.tracemyip.org/tools/remove-du...s-in-text/
You just want to remove duplicates ?!
Code:
sort file.txt | uniq
or just sort -u
''LC_ALL=C sort -u''

You can also ''man sort'' and look at the --parallel and -S switches to improve performance.
ah, i see, its a unix command.
you had me thinking you were a wizard there for a second.
This was driving me nuts.  I came back to this post later and installed cygwin and finally got it to work.  Funny how sometimes you get a wild hair up your ass about something and can't let it go.
You can have sort & uniq & other *nix tools under windows without the cygwin sh** : http://gnuwin32.sourceforge.net
You can also use WSL and run Ubuntu under Windows 10
I'd go Msys2