loading
loading
Utilities
Inverse file filter: keep files that lack a given string.
overview
ungrep-by-string is a folder-level inverse filter. Pass ungrep-string and folder-with-files; it keeps files that do not contain the string and drops the ones that do.
Reach for it when a known false positive, placeholder, or out-of-scope marker pollutes a results folder and the next stage should never see those files.
Trickest provides ungrep-by-string as a managed Utilities node. Outputs FILE and FOLDER of survivors. Pair with fgrep-by-string when you need the matching set instead.
use cases
Remove every file in a results folder that contains a string you have already triaged as noise, so downstream stages never see it again.
Filter a folder of tool results to discard files mentioning a host or path that is outside scope, keeping the workflow focused.
Insert ungrep-by-string after a collector to prune unwanted files in place, with no manual editing, before the next tool consumes the folder.
When you need the files that do not match rather than the ones that do, ungrep-by-string gives you the complement of a normal content filter.
reference
| Name | Type | Flag | Description |
|---|---|---|---|
| ungrep-string | STRING | · | String that files must not contain to pass through. |
| folder-with-files | FOLDER | · | Folder of files to filter by the ungrep string. |
Showing key inputs. ungrep-by-string exposes 2 inputs in total.
example
# ungrep-by-string: drop files that mention out-of-scope noise# inputs: folder-with-files=results/ ungrep-string=out-of-scope.example.org# kept files still list in-scope hosts onlyapi.example.comapp.example.comstaging.example.comdev.example.commail.example.comcdn.example.comvpn.example.comwww.example.comguidance
Use ungrep-by-string when a folder of tool output carries a string you want gone and non-matching files should continue. It filters whole files, not lines. For keeping matches use fgrep-by-string; for URL list collapse use urldedupe; for URL part extraction use unfurl.
Keeps files that contain the string. ungrep-by-string keeps the ones that do not.
Flattens JSON for line greps. ungrep-by-string filters whole files in a folder.
Appends only new, unseen lines. ungrep-by-string removes files by content instead.
faq
related
Spider a URL and return a wordlist for password crackers.
Wordlist and mined-word subdomain permutation.
Import, export, and upsert workflow data against an Airtable base.
Decode Android APK files into smali sources and resources.
Check a file's values against conditions and exit with a matching code.
Authenticated Route53 hosted-zone inventory.
A folder of files feeds ungrep-by-string, which drops every file containing the noise string and writes the surviving files as a queryable output.
Facts on this page come from the live Trickest tool library.