From owner-freebsd-questions@FreeBSD.ORG Sat Sep 29 06:16:10 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3AA1216A417 for ; Sat, 29 Sep 2007 06:16:10 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id F378113C467 for ; Sat, 29 Sep 2007 06:16:09 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.1/8.14.1) id l8T6G9na017321; Sat, 29 Sep 2007 01:16:09 -0500 (CDT) (envelope-from dan) Date: Sat, 29 Sep 2007 01:16:08 -0500 From: Dan Nelson To: Aryeh Friedman Message-ID: <20070929061608.GG62033@dan.emsphone.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 7.0-CURRENT User-Agent: Mutt/1.5.16 (2007-06-09) Cc: FreeBSD Mailing List Subject: Re: url encoding a string with base system tools X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Sep 2007 06:16:10 -0000 In the last episode (Sep 29), Aryeh Friedman said: > I am creating a new port and part of the install procedure is the > install script needs to send some data to a web server in the form of > http://.....?XXXXX where XXX is the url encoded plain text (can > include any ascii printable character) that needs to be sent. > > Since this for a port I want to do the plain to url encoded text with > tools *ONLY* found in the base freebsd install (no ports). How would > I do this? A google search for "url encode sed" returns some useful links, the best being http://www.mollerus.net/tom/blog/2007/06/cf_through_a_commandline_interface_part_2_programm.html although I see there are two entries for tab, one just having a space, so you'll definitely want to test it out. -- Dan Nelson dnelson@allantgroup.com