loading
loading
Utilities
Prepend one string to each line in a file or folder.
overview
Sit prefix-file-lines between recon output and any stage that expects scheme-qualified URLs or rooted paths.
Operators reach for it when a host list, wordlist, or merge sink needs the same prefix on every line without writing a script.
Inputs are file or folder plus prefix-string. For end-of-line stamps use suffix-file-lines; for structured URL rewrite use unfurl or qsreplace.
use cases
Prefix a list of hostnames with https:// so a crawler or HTTP prober downstream receives well-formed URLs instead of bare names.
Add the scheme, parameter, or label a downstream node expects so two stages connect without a custom script in between.
Prefix each line with a source marker so that when several files merge into one sink, you can still tell where each entry came from.
reference
| Name | Type | Flag | Description |
|---|---|---|---|
| file | FILE | · | Folder with files that need a prefix for each line |
| folder | FOLDER | · | Folder with files that need a prefix for each line |
| prefix-string | STRING | · | String that will be appended to each line. |
Showing key inputs. prefix-file-lines exposes 3 inputs in total.
example
# prefix-file-lines: turn hosts into https URLsprefix-file-lines --prefix 'https://' hosts.txthttps://www.example.comhttps://api.example.comhttps://dev.example.comhttps://staging.example.comhttps://mail.example.comguidance
Use when the next stage needs a fixed prefix on every line, such as https:// on bare hosts. Prefer suffix-file-lines to append. Prefer unfurl or qsreplace for component-level URL edits.
Mirror tool that appends a string to the end of each line instead of the start.
Parses and reformats URL components. Use when you need structured rewrite, not a flat prefix.
Appends only new unique lines to a file. Pair with a prefix step when deduping a growing list.
faq
related
Spider a URL and return a wordlist for password crackers.
Wordlist and mined-word subdomain permutation.
CSS selectors over HTML, the jq counterpart for markup.
Extract chosen URL parts from stdin into clean line lists.
Import, export, and upsert workflow data against an Airtable base.
Decode Android APK files into smali sources and resources.
A host list feeds prefix-file-lines, which prepends https:// to each line and hands the URLs to httpx for probing before they land as output.
Facts on this page come from the live Trickest tool library.