diff options
author | tv <tv@krebsco.de> | 2021-01-07 21:09:12 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2021-01-07 21:12:38 +0100 |
commit | 2aab7aea07d469f60fdfb662b75f707dc70c86a8 (patch) | |
tree | 84eb781338801b39503660c8766f538f0bd84df3 /krebs/5pkgs | |
parent | 120eadb80a38e063ed9fc54af0e8b23974e9fe43 (diff) |
urix: init
Diffstat (limited to 'krebs/5pkgs')
-rw-r--r-- | krebs/5pkgs/simple/urix.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/krebs/5pkgs/simple/urix.nix b/krebs/5pkgs/simple/urix.nix new file mode 100644 index 000000000..c0db8c975 --- /dev/null +++ b/krebs/5pkgs/simple/urix.nix @@ -0,0 +1,15 @@ +let lib = import <stockholm/lib>; in +{ pkgs }: + +# urix - URI eXtractor +# Extract all the URIs from standard input and write them to standard output! +# usage: urix < SOMEFILE + +pkgs.execBin "urix" { + filename = "${pkgs.gnugrep}/bin/grep"; + argv = [ + "urix" + "-Eo" + "\\b${lib.uri.posix-extended-regex}\\b" + ]; +} |