loading
loading
Utilities
Diff an input file against a file from your Trickest file storage.
overview
diff-trickest-files takes a fresh file from the current run and compares it against a copy you keep in Trickest file storage. The result is the set of lines that are new or changed, so a recurring workflow can react to deltas instead of reprocessing the whole dataset every time.
That is the continuous-monitoring pattern: save last run's subdomains, URLs, or hosts with put-trickest-files, then diff the next run against that baseline so only freshly appeared assets flow downstream to probing, screenshotting, or alerting.
Authenticate with token or token-file, name the stored baseline in old-file, and point new-file at this run's output. Pair the Utilities node with put-trickest-files so each run refreshes the baseline for the next comparison.
use cases
Diff this run's subdomain list against the version stored last run so probing and alerting fire on new hosts, not the full set every time.
Schedule a recon workflow and diff each output against its stored baseline to catch changes as they appear across the estate.
Feed only the changed lines to expensive nodes like screenshotting or scanning instead of rerunning them over unchanged data.
Store the latest list with put-trickest-files after the diff so the next scheduled run has a current old-file to compare against.
reference
| Name | Type | Flag | Description |
|---|---|---|---|
| new-file | FILE | · | The new file produced by the current run. |
| old-file | STRING | · | Name of the baseline file as saved in Trickest file storage. |
| token | STRING | · | Trickest authentication token. |
| token-file | FILE | · | Trickest authentication token supplied as a file. |
Showing key inputs. diff-trickest-files exposes 4 inputs in total.
example
# compare this run's subdomain list to the stored baseline named subdomains.txtdiff-trickest-files new-subs.txt subdomains.txtapi.example.comstaging.example.comcdn.example.com198.51.100.42vpn.example.comdev.example.com203.0.113.17guidance
Reach for diff-trickest-files when a scheduled workflow should act only on what changed since the last run. Store a baseline with put-trickest-files, diff the next run against it, then refresh the baseline. For pulling a stored file without comparing, use get-trickest-files.
Pulls a stored file into the workflow. diff-trickest-files goes further and reports what changed.
Saves a file to storage. Run it alongside the diff to keep the baseline current.
Appends only new lines to a local file. diff-trickest-files compares against a persisted storage baseline instead.
faq
related
Import, export, and link workflow data with Airtable.
Decode Android APK files into smali sources and resources.
Check a file's values against conditions and exit with a matching code.
Extract all hosted zones from AWS Route53.
Output file lines by batch size, given START_LINE and END_LINE.
Extract a batch range from a file's lines or a folder's files, with parallel processing.
A fresh subdomain list feeds diff-trickest-files, which compares it to the stored baseline and writes only the changed lines as output.
Facts on this page come from the live Trickest tool library.