Hacker News new | ask | show | jobs
by kjellsbells 1169 days 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?

1 comments

I think it can do what you're suggesting, if I'm understanding correctly:

> $ trurl --url https://example.com --set path=/abc/123 --set scheme=ftp --set host=foo.bar

> $ ftp://foo.bar/abc/123