While studying for bug Bounty I have been trying some new tools, and I came across one called anew from TomNomNom who I am a great fan. however, I noticed his anew tool was not removing the words that had a space before or after the word, so I gave a go in creating my own variation of the tool which will help me clean up the lists for the subdomains Im harvesting
Bleachit is a convenient function written in Zsh that reads text files, removes empty lines, trims whitespace, and combines lines into unique values. Perfect for cleaning up messy text files and ensuring you have a tidy output! ✨
- Removes empty lines 📄
- Trims leading and trailing whitespace ✂️
- Combines lines into unique values 🔍
- Easy to use with multiple input files 📂
- Can be used to trim one file or many files
To use the Bleachit function, simply call it from the terminal and provide one or more text files as arguments. For example:
▶ cat file1.txt
Zero
One
Two
Zero
Zero
One
▶ cat file2.txt
One
Two
Three
Four
▶ Bleachit file1.txt file2.txt
Four
One
Three
Two
Zero
▶ Bleachit file1.txt
▶ Bleachit file1.txt file2.txt
▶ Bleachit file1.txt file2.txt file3.txt file4.txt
▶ cat domains.txt | bleachit
▶ cat domains.txt anotherDomains.txt | bleachit > combined.txt
You can install by making the scrape file executable and moving it to your /bin/usr/scrape
chmod +x Bleachit
cp scrape /usr/bin/Bleachit