4 ms·
Pretty dang cool, but I might have missed a feature: can trurl do multiple manipulations on a single url, as opposed to a single manipulation on multiple urls (
by kjellsbells 4y ago
Pretty dang cool, but I might have missed a feature: can trurl do multiple manipulations on a single url, as opposed to a single manipulation on multiple urls (which the blog post says is supported)?
For example, you want to apply a sequence of predefined normalization steps, such as removing the user part, converting http to https, etc etc. You put these steps in a file and then invoke trurl with that file and pointed at your url or urls. Very much like what you would do in sed, say. Possible?
- skibz 4y agoI think it can do what you're suggesting, if I'm understanding correctly: > $ trurl --url https://example.com https://example.com --set path=/abc/123 --set scheme=ftp --set host=foo.bar > $ ftp://foo.bar/abc/123