From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ds.inri.net ([107.191.103.21]) by ur; Thu Aug 25 16:40:31 EDT 2016 Received: from [10.248.36.249] ([166.175.189.240]) by ds; Thu Aug 25 16:40:30 EDT 2016 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Subject: Fwd: [9front-commits] aiju at hg/plan9front: add Bfn script From: stanley lieber Date: Thu, 25 Aug 2016 16:40:27 -0400 To: 9front@9front.org Message-ID: List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: browser standard-based full-stack-oriented realtime interface Why isn't this in /rc/bin? sl -------- Original Message -------- From: = The Computer Sent: Thu Aug 25 16:36:42 EDT 20= 16 To: 9front-commits@9front=2Eorg Subject: [9front-commits] aiju at hg/pla= n9front: add Bfn script details: http://code=2E9front=2Eorg/hg/plan9fr= ont/rev/6b7a74d600f9 changeset: 5447:6b7a74d600f9 user: aiju date: Thu Aug 25 22:36:39 2016 +0200 description: add Bfn script diffstat: bin/Bfn | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diffs (20 lines): diff -r 1f23a4b8b494 -r 6b7a74d600f9 bin/Bfn --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/Bfn Thu Aug 25 22:36:39 2016 +0200 @@ -0,0 +1,16 @@ +#!/bin/rc +if(! ~ $#* 1){ + echo usage: $0 fn >[2=3D1] + exit usage +} +res=3D`{grep -n '^'$1'\(' *=2Ec | sed -n 's/^([^:]*:[^:]*)=2E*$/\1/gp' } +ifs=3D' +' +for(i in $res) + echo $i +switch($#res){ +case 0 + echo $1: not found >[2=3D1] +case 1 + plumb $res +}