Re: unix command question

2001-05-02 Thread Jared Still
Lee, If you quit using -exec you will do yourself a big favor. That line will fork a shell for each directory found by find. It can be rewritten as: find . -type d | xargs ls -ld Jared On Wednesday 02 May 2001 02:05, Robertson Lee - lerobe wrote: > oops, I missed off the -exec bit. > > fi

Re: unix command question

2001-05-02 Thread Dennis Taylor
It's not the body parts, it's the morbidness (morbidity?). Unix has children and parents and ancestors, all of which you can kill, and some of which will become zombies rather than just dying. Gross. At 08:15 PM 5/1/01 -0800, you wrote: >It's commands like awk, grep, xargs and troff that give UN

Re: unix command question

2001-05-02 Thread Dennis Taylor
At 07:20 PM 5/1/01 -0800, you wrote: > >Haven't seen this one mentioned yet: > >find . -type d -print | xargs ls -ld > >Jared > This one does a recursive list. The one I posted only does the current directory. Not sure which variation the poster wanted. Dennis Taylor ---

Re: unix command question

2001-05-02 Thread Dennis Taylor
ls -ld `find * -type d -prune` note that those are back-quotes around the find command. If you're worried about blowing your command-line buffer, if you've got a *lot* of directories, use: find * -type d -prunt | xargs ls -ld At 03:05 PM 5/1/01 -0800, you wrote: >what I would like to see is a

RE: unix command question

2001-05-02 Thread Leonardo Fernandez
try ls -lt | grep drw bye, L.F. -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Leonardo Fernandez INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists -

RE: unix command question

2001-05-02 Thread Glenn Travis
ultiple recipients of list ORACLE-L > Subject: unix command question > > > what is the ls command to view only a list of directories? > > ls -la lists both files and directories...I want to view only a list of > directories... > > environment is sun sparc solaris 2.6 >

RE: unix command question

2001-05-02 Thread Smith, Ron L.
a "du" command will list the drectories and their size. -Original Message- Sent: Tuesday, May 01, 2001 4:36 PM To: Multiple recipients of list ORACLE-L what is the ls command to view only a list of directories? ls -la lists both files and directories...I want to view only a list of di

Re: unix command question

2001-05-02 Thread Darlene Marley
"The two major products to come out of Berkeley are LSD & UNIX. We don't believe this to be a coincidence" -- Author unknown "David A. Barbour" wrote: > It's commands like awk, grep, xargs and troff that give UNIX a bad > name. I read somewhere (more years ago than I'd care to recall) that > y

RE: unix command question

2001-05-02 Thread Robertson Lee - lerobe
oops, I missed off the -exec bit. find . -type d -exec ls -ld {} \; 2>/dev/null Cheers Lee The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the int

RE: unix command question

2001-05-02 Thread Robertson Lee - lerobe
from root (or from the starting directory you want to search from) do the following find . -type d 2>/dev/null Regards Lee -Original Message- Sent: 02 May 2001 00:05 To: Multiple recipients of list ORACLE-L what I would like to see is all directories...not files starting wit

Re: unix command question

2001-05-01 Thread David A. Barbour
It's commands like awk, grep, xargs and troff that give UNIX a bad name. I read somewhere (more years ago than I'd care to recall) that you should always beware of an operating system with commands that sounded like bad bodily functions. Jared Still wrote: > > Haven't seen this one mentioned ye

RE: unix command question

2001-05-01 Thread Mohan, Karthik (GEP)
Title: RE: unix command question You can also try the following ll |grep ^d Regards, Karthik M -Original Message- From: Jared Still [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 11:20 AM To: Multiple recipients of list ORACLE-L Subject: Re: unix command question

Re: unix command question

2001-05-01 Thread Jared Still
Haven't seen this one mentioned yet: find . -type d -print | xargs ls -ld Jared On Tuesday 01 May 2001 19:55, David A. Barbour wrote: > ls -Ra | grep / > > That's ls -Ra 'pipe' grep / > > You know, the spell checker has fits with the stuff on this list. > > Regards, > > David a. Barbour > Ora

Re: unix command question

2001-05-01 Thread David A. Barbour
ls -Ra | grep / That's ls -Ra 'pipe' grep / You know, the spell checker has fits with the stuff on this list. Regards, David a. Barbour Oracle DBA, OCP Roy Ferguson wrote: > > what I would like to see is all directories...not files starting with a > particular letter but all directories... >

RE: unix command question

2001-05-01 Thread Shaw, Donnie
How about ls -ld */ -Original Message- Sent: Tuesday, May 01, 2001 3:05 PM To: Multiple recipients of list ORACLE-L what I would like to see is all directories...not files starting with a particular letter but all directories... ls -d - doesn't work ls -ld p* - doesn't work eith

RE: unix command question

2001-05-01 Thread Behar, Rivaldi
Title: RE: unix command question ls -l | grep ^d  Rivaldi -Original Message- From: Roy Ferguson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 4:36 PM To: Multiple recipients of list ORACLE-L Subject: unix command question what is the ls command to view only a list of

Re: unix command question

2001-05-01 Thread Roy Ferguson
what I would like to see is all directories...not files starting with a particular letter but all directories... ls -d - doesn't work ls -ld p* - doesn't work either > >Roy, > >You could do say ls -ld p* to list the directories starting with p. > >Rgds, > >raja >-- > >On Tue, 01 May 2001 1

Re: unix command question

2001-05-01 Thread tom panzarella
ls -la | grep -e '^d' the above works on Linux. --t. Roy Ferguson wrote: > what is the ls command to view only a list of directories? > > ls -la lists both files and directories...I want to view only a list of > directories... > > environment is sun sparc solaris 2.6 > > thanks in advance

Re: unix command question

2001-05-01 Thread Viraj Luthra
Roy, You could do say ls -ld p* to list the directories starting with p. Rgds, raja -- On Tue, 01 May 2001 13:35:46 Roy Ferguson wrote: >what is the ls command to view only a list of directories? > >ls -la lists both files and directories...I want to view only a list of >directories... >

unix command question

2001-05-01 Thread Roy Ferguson
what is the ls command to view only a list of directories? ls -la lists both files and directories...I want to view only a list of directories... environment is sun sparc solaris 2.6 thanks in advance roy -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Roy Ferguso