dot

packages and services management
Log | Files | Refs | README

commit 6f437f8eecbb84fd528c3ebfd84921d3a647ef89
parent ebce9613d11830679309ff4c468a53da5683f169
Author: Josuah Demangeon <mail@josuah.net>
Date:   Thu,  4 May 2017 00:13:19 +0200

added wiki script (WIP)

Diffstat:
Abin/wiki | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/bin/wiki b/bin/wiki @@ -0,0 +1,6 @@ +BASEURL='http://en.wikipedia.org/w/api.php?action=query&list=search&format=json' + +wget -qO- "$BASEURL&srsearch=$1" | awk -v RS='"title": *"' 'NR > 1 { + gsub(/".*/, ""); + print; +}'