summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/urix.nix
blob: 9ac3a115cdbfb46216e8b7b026b7823af5e20027 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{ pkgs, lib, writeDash }:

let
  stockholm.lib = import ../../../lib/pure.nix { inherit lib; };
in

# urix - URI eXtractor
# Extract all the URIs from standard input and write them to standard output!
# usage: urix < SOMEFILE

writeDash "urix" ''
  exec ${pkgs.gnugrep}/bin/grep -Eo '\b${stockholm.lib.uri.posix-extended-regex}\b'
''