From owner-freebsd-questions@freebsd.org Thu Oct 20 00:18:23 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 420CDC19FE5 for ; Thu, 20 Oct 2016 00:18:23 +0000 (UTC) (envelope-from chris@monochrome.org) Received: from mail.monochrome.org (host-209-190-254-14.client.atlantech.net [209.190.254.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail", Issuer "mail" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0E3347D6 for ; Thu, 20 Oct 2016 00:18:21 +0000 (UTC) (envelope-from chris@monochrome.org) Received: from [192.168.1.11] (tripel [192.168.1.11]) by mail.monochrome.org (8.14.9/8.14.9) with ESMTP id u9K0FUMf008948 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 19 Oct 2016 20:15:30 -0400 (EDT) (envelope-from chris@monochrome.org) Date: Wed, 19 Oct 2016 20:15:38 -0400 (EDT) From: Chris Hill To: Manish Jain cc: Alejandro Imass , freebsd-questions Subject: Re: Is there a curses-based mp3 player available in FreeBSD ? In-Reply-To: Message-ID: References: <44wph473ao.fsf@lowell-desk.lan> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Oct 2016 00:18:23 -0000 On Wed, 19 Oct 2016, Manish Jain wrote: > On 10/19/16 21:55, Alejandro Imass wrote: >> make search name=[regexp] > > FreeBSD is the land of discovery, lol. I knew make has recursion support > (make config-recursive); but I never knew there is a 'make search' too. Here is my dumb little script: $ cat findport #!/bin/sh # Find a port whose name contains the string supplied as argument prev_dir=`pwd` cd /usr/ports make search key=$1 | grep Path | grep -v deps | grep -i $1 | awk '{print $2}' cd $prev_dir Usage looks like: $ findport mp3bl /usr/ports/audio/mp3blaster HTH. -- Chris Hill chris@monochrome.org ** [ Busy Expunging ]