Search In No Time
SINT is an easy to use search tool. You can search all files in a directory and its subdirectories (or just a single file) using regular expressions and save the matching lines in an output file. Useful if you are looking for error messages in many log files. The script is for now optimized for search over a bunch of smaller (each ~10 MiB) files. The single file search performance is not quite as good as the directory search.
High Score: ~10 Seconds to scan 3.5 GB of files (8 MiB per file) (Intel i7-2630QM + SanDisk SSD)
$python sint -p "SomeRegex"
$python sint -p "SomeRegex" -o "~/matching_lines"
$python sint -p "non-free" -d "/etc/apt/"
$python sint -p "error" -o "/home/me/matching_lines" -d "/var/log/syslog"
just type $python sint -h
- Improve single file search performance
- Fix error: BrokenProcessPool