From owner-freebsd-questions Fri Mar 1 07:29:25 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA20138 for questions-outgoing; Fri, 1 Mar 1996 07:29:25 -0800 (PST) Received: from seagull.rtd.com (root@seagull.rtd.com [198.102.68.2]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id HAA20132 for ; Fri, 1 Mar 1996 07:29:22 -0800 (PST) Received: (from dgy@localhost) by seagull.rtd.com (8.6.12/1.2) id IAA15089 for freebsd-questions@freefall.cdrom.com; Fri, 1 Mar 1996 08:29:21 -0700 From: Don Yuniskis Message-Id: <199603011529.IAA15089@seagull.rtd.com> Subject: stewpid shell tricks To: freebsd-questions@freefall.FreeBSD.org Date: Fri, 1 Mar 1996 08:29:21 -0700 (MST) X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG Precedence: bulk Greetings! Can someone explain how to properly embed tabs in shell variables and commands? As a real simplistic test case: x="this\tis a test" echo $x yields different results under different shells. In particular, I haven't found a good way of doing: result=`echo $x | cut -f2` or similar. Thx, --don