From owner-freebsd-questions Wed May 10 22:29:39 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail1.noc0.hsacorp.net (mail1.noc0.hsacorp.net [208.247.171.140]) by hub.freebsd.org (Postfix) with ESMTP id A0D0E37B70B for ; Wed, 10 May 2000 22:29:32 -0700 (PDT) (envelope-from jconner@enterit.com) Received: from [24.216.177.146] (HELO default.enterit.com) by mail1.noc0.hsacorp.net (CommuniGate Pro SMTP 3.2.4) with ESMTP id 11945190 for freebsd-questions@FreeBSD.ORG; Thu, 11 May 2000 01:29:31 -0400 Message-Id: <4.3.1.2.20000511013423.00adaa00@mail.enterit.com> X-Sender: jconner@mail.enterit.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Thu, 11 May 2000 01:35:42 -0400 To: freebsd-questions@FreeBSD.ORG From: Jim Conner Subject: RE: making even columns in sh In-Reply-To: <4.3.1.2.20000511012812.01ec85f0@mail.enterit.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 01:29 AM 5/11/00 -0400, Jim Conner wrote: >>At 17.47 10.05.00 +1000, Richard Grace wrote: >> > > 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. >> >>Is there a difference of ^| to echo -e "\t" (using [ba]sh) or echo "\t" >>using non-sh? >>I've never seen this before. >> >>Jim One more thing that was briefly touched on was the use of printf. I think that may work better for you depending on what you want. In my opinion, however, echo -e "\t" || non-sh echo "\t" is easier and works very well. Jim >> >Richard Grace >> > >> >ITworks Consulting Pty. Ltd. >> > >> > >> > >> >To Unsubscribe: send mail to majordomo@FreeBSD.org >> >with "unsubscribe freebsd-questions" in the body of the message > > >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Today's errors, in contrast: >Windows - "Invalid page fault in module kernel32.dll at 0032:A16F2935" >UNIX - "segmentation fault - core dumped" >Humanous Beingsus - "OOPS, I've fallen and I can't get up" >------------------------------- >Jim Conner >NOTJames >jconner@enterit.com > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Today's errors, in contrast: Windows - "Invalid page fault in module kernel32.dll at 0032:A16F2935" UNIX - "segmentation fault - core dumped" Humanous Beingsus - "OOPS, I've fallen and I can't get up" ------------------------------- Jim Conner NOTJames jconner@enterit.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message