Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jun 2001 18:41:29 -0400
From:      Robert Hough <rch@acidpit.org>
To:        Brad Knowles <brad.knowles@skynet.be>
Cc:        Chris Moline <ugly-daemon@home.com>, chat@FreeBSD.ORG
Subject:   Re: System Tuning/Sysadmins
Message-ID:  <20010617184129.B84666@acidpit.org>
In-Reply-To: <p05100328b752a1592737@[194.78.241.123]>; from brad.knowles@skynet.be on Sun, Jun 17, 2001 at 20:04:06 %2B0200
References:  <20010617063505.A29241@shell.monmouth.com> <20010617073505.B20171@h24-67-61-12.lb.shawcable.net> <20010617103922.A79022@acidpit.org> <20010617093905.A20349@h24-67-61-12.lb.shawcable.net> <20010617124444.A84138@acidpit.org> <20010617110702.A20700@h24-67-61-12.lb.shawcable.net> <20010617135150.A84666@acidpit.org> <p05100328b752a1592737@[194.78.241.123]>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 17, 2001, Brad Knowles wrote:
> 
> 	What about shell command line limitations on length?  It seems to 
> me that to be sure you eliminate any possibility of problems there, 
> you need to send output to a temporary file, and walk through it line 
> by line.

Made me stop and think about that for a second huh! Actually, I created
60000 files in a directory and tested my little script in it. Worked
without a hitch. Now, I can see what you mean though, as some instances
would have problems with this -- ls for instance does.

[rch@warhammer tmp]$ ls 1*
bash: /bin/ls: Argument list too long

Using 'echo 1*' didn't give me this problem. Actually, this is how I
learned about using echo to show directory listings in the first place.
I kept running into that limitation with ls.

I don't claim to be a scripting god, but I can usually make something
work when I have to. Which was my point to begin with. I'd never attempt
to replace 'ls' with my crappy script, but should I ever lose 'ls' I'll
have something to fall back on. I actually have a little more feature
filled 'showdir.sh' script, but it was a bit too long to post here. Now,
if I could just get it to show permissions, and do some color! :)

-- 
Robert Hough (rch@acidpit.org)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-chat" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010617184129.B84666>