From owner-freebsd-questions@freebsd.org Fri Mar 31 20:41:21 2017 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 8D67BD27E1A for ; Fri, 31 Mar 2017 20:41:21 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B913AF3 for ; Fri, 31 Mar 2017 20:41:21 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id v2VKfDZd029293 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 31 Mar 2017 14:41:13 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id v2VKfD1b029290; Fri, 31 Mar 2017 14:41:13 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 31 Mar 2017 14:41:13 -0600 (MDT) From: Warren Block To: Ultima cc: David Mehler , freebsd-questions Subject: Re: shell script guru In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (wonkity.com [127.0.0.1]); Fri, 31 Mar 2017 14:41:13 -0600 (MDT) 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: Fri, 31 Mar 2017 20:41:21 -0000 On Thu, 30 Mar 2017, Ultima wrote: > Curl is probably the correct utility for this job. With curl the cat and rm > command can be negated entirely, although I'm not sure it has the same > option set if explicitly required. Just stdout to the desired file. If a > fresh list each use of the command is needed, add an rm before the for. The FreeBSD native command is fetch(1).