blob: 9f6f955875973fc9c027bf88f67306f3e23dd042 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
{ pkgs, ... }:
pkgs.writeScriptBin "acronym" ''
#! ${pkgs.bash}/bin/bash
acro=$1
curl -s http://www.acronymfinder.com/$acro.html \
| grep 'class="result-list__body__rank"' \
| sed '
s/.*title="\([^"]*\)".*/\1/
s/^.* - //
s/'/'\'''/g
'
''
|