Utilities
Prune files that contain a known noise string
Inverse file filter: keep files that lack a given string.
overview
What ungrep-by-string does
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
Where ungrep-by-string fits
Strip out a known false positive
Remove every file in a results folder that contains a string you have already triaged as noise, so downstream stages never see it again.
Drop out-of-scope output
Filter a folder of tool results to discard files mentioning a host or path that is outside scope, keeping the workflow focused.
Clean a folder between pipeline stages
Insert ungrep-by-string after a collector to prune unwanted files in place, with no manual editing, before the next tool consumes the folder.
Invert a grep filter
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
ungrep-by-string inputs and flags
| 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
Run ungrep-by-string
# 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
Choosing ungrep-by-string
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.
fgrep-by-string
Keeps files that contain the string. ungrep-by-string keeps the ones that do not.
gron
Flattens JSON for line greps. ungrep-by-string filters whole files in a folder.
anew
Appends only new, unseen lines. ungrep-by-string removes files by content instead.
faq
ungrep-by-string questions
related
More Utilities tools
browser-fetch
Headless Chromium render: requested URL, final URL, status, and title next to the page.
cewl
Spider a URL and return a wordlist for password crackers.
csvkit
SQL on one CSV. The table name is the file stem.
dnsgen
Wordlist and mined-word subdomain permutation.
duckdb
In-process SQL on CSV, JSON, and Parquet. No server.
edge-tts
Microsoft Edge neural speech from text or a script file. No API key.
Run ungrep-by-string yourself
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.