From owner-freebsd-questions Wed May 10 0:45:12 2000 Delivered-To: freebsd-questions@freebsd.org Received: from iserver.itworks.com.au (iserver.itworks.com.au [203.32.61.10]) by hub.freebsd.org (Postfix) with SMTP id C81E737B581 for ; Wed, 10 May 2000 00:45:06 -0700 (PDT) (envelope-from rgrace@itworks.com.au) Received: (qmail 49209 invoked from network); 10 May 2000 07:45:04 -0000 Received: from maybe.itworks.com.au (203.36.209.235) by iserver.itworks.com.au with SMTP; 10 May 2000 07:45:04 -0000 Received: (qmail 52017 invoked from network); 10 May 2000 07:45:04 -0000 Received: from dhcp8.itworks.com.au (HELO paranoia) (203.36.209.217) by maybe.itworks.com.au with SMTP; 10 May 2000 07:45:04 -0000 Reply-To: From: "Richard Grace" To: "Dan Larsson" , Subject: RE: making even columns in sh Date: Wed, 10 May 2000 17:47:54 +1000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I've written a simple script to display usernames > with their $HOME as root (chrooted). The $HOME variable > is extracted with awk and sed. > > However as usernames are not all the same lenght > the columns (username chroot/path ) don't run > straight down, that is the chroot/path column start > depends on how long the username is. > > Is there some way I can manipulate the rows so that > the second column is displayed in an 'orderly' fashion > using sh? Try echoing a tab character (^I) in between. Richard Grace ITworks Consulting Pty. Ltd. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message