create an alias to list directory name

create an alias to list directory name

Post by Ja » Wed, 19 Mar 2003 09:26:58



create an alias to list the names of all files in the named
directories that are themselves directories.
 
 
 

create an alias to list directory name

Post by Warren Bloc » Wed, 19 Mar 2003 10:03:59



> create an alias to list the names of all files in the named
> directories that are themselves directories.

It would save time if you just posted all of the test questions at once.

--
Warren Block * Rapid City, South Dakota * USA

 
 
 

create an alias to list directory name

Post by daveh.. » Wed, 19 Mar 2003 10:06:08




>> create an alias to list the names of all files in the named
>> directories that are themselves directories.
> It would save time if you just posted all of the test questions at once.

Now, that's not entirely fair.  It's probably homework, rather than
a test, wouldn't you think?
 
 
 

create an alias to list directory name

Post by Liam Cunningha » Thu, 20 Mar 2003 03:35:20



> create an alias to list the names of all files in the named
> directories that are themselves directories.

man ksh || man bash
man ls
man egrep

See following for directions:

--

If at first you don't succeed,
   read the manual......

 
 
 

create an alias to list directory name

Post by Warren Bloc » Thu, 20 Mar 2003 09:54:22





>>> create an alias to list the names of all files in the named
>>> directories that are themselves directories.

>> It would save time if you just posted all of the test questions at once.

> Now, that's not entirely fair.  It's probably homework, rather than
> a test, wouldn't you think?

Yes, you're probably right.  Perhaps I was too harsh.  To make up for
it, here's an answer to the original question:

alias alias=alias ^% \\[%4] | wattle -q | zerf

(May not work on all systems.)

--
Warren Block * Rapid City, South Dakota * USA

 
 
 

create an alias to list directory name

Post by Steve Thompso » Thu, 20 Mar 2003 10:22:29






> >>> create an alias to list the names of all files in the named
> >>> directories that are themselves directories.

> >> It would save time if you just posted all of the test questions at once.

> > Now, that's not entirely fair.  It's probably homework, rather than
> > a test, wouldn't you think?

> Yes, you're probably right.  Perhaps I was too harsh.  To make up for
> it, here's an answer to the original question:

> alias alias=alias ^% \\[%4] | wattle -q | zerf

> (May not work on all systems.)

If you are using Linux, that should be "gzerf".

-s

 
 
 

create an alias to list directory name

Post by Noel R. Nihil » Thu, 20 Mar 2003 22:38:07








> > >>> create an alias to list the names of all files in the named
> > >>> directories that are themselves directories.

> > >> It would save time if you just posted all of the test questions at
once.

> > > Now, that's not entirely fair.  It's probably homework, rather than
> > > a test, wouldn't you think?

> > Yes, you're probably right.  Perhaps I was too harsh.  To make up for
> > it, here's an answer to the original question:

> > alias alias=alias ^% \\[%4] | wattle -q | zerf

> > (May not work on all systems.)

> If you are using Linux, that should be "gzerf".

And on Solaris you want the POSIX-compliant /usr/xpg4/bin/zerf

Couldn't resist, sorry...

Quote:> -s

--
Noel R. Nihill
UNIX? platform development
Motorola NSS

Vorsprung durch Technik

 
 
 

create an alias to list directory name

Post by daveh.. » Thu, 20 Mar 2003 22:51:21




>> alias alias=alias ^% \\[%4] | wattle -q | zerf

>> (May not work on all systems.)
> If you are using Linux, that should be "gzerf".

Most recent versions of gzerf also install as zerf, do they not?
 
 
 

create an alias to list directory name

Post by Steve Thompso » Fri, 21 Mar 2003 08:20:59





> >> alias alias=alias ^% \\[%4] | wattle -q | zerf

> >> (May not work on all systems.)

> > If you are using Linux, that should be "gzerf".

> Most recent versions of gzerf also install as zerf, do they not?

True, but I don't like to use the gzerf that comes from the RPM
(/usr/bin/[g]zerf), because I like different defaults (beyond those that
can be set in the .zerfrc file). I build my own from source, and have
/usr/local/bin ahead in the PATH, so that I can trace zerf failures back
to the source.

Steve

 
 
 

create an alias to list directory name

Post by daveh.. » Sat, 22 Mar 2003 01:13:10




>> Most recent versions of gzerf also install as zerf, do they not?
> True, but I don't like to use the gzerf that comes from the RPM
> (/usr/bin/[g]zerf), because I like different defaults (beyond those that
> can be set in the .zerfrc file).

Oh, I agree, I rarely if ever use someone else's packages.  Too many
assumptions for my taste; I very much prefer to roll my own.

Quote:> I build my own from source, and have
> /usr/local/bin ahead in the PATH, so that I can trace zerf failures back
> to the source.

What compile options are you using?  I'm doing a fairly generic
configuration, but I'd be curious to hear what you've found useful.

Dave

 
 
 

create an alias to list directory name

Post by Steve Thompso » Sat, 22 Mar 2003 08:38:45





> >> Most recent versions of gzerf also install as zerf, do they not?

> > True, but I don't like to use the gzerf that comes from the RPM
> > (/usr/bin/[g]zerf), because I like different defaults (beyond those that
> > can be set in the .zerfrc file).

> Oh, I agree, I rarely if ever use someone else's packages.  Too many
> assumptions for my taste; I very much prefer to roll my own.

> > I build my own from source, and have
> > /usr/local/bin ahead in the PATH, so that I can trace zerf failures back
> > to the source.

> What compile options are you using?  I'm doing a fairly generic
> configuration, but I'd be curious to hear what you've found useful.

My configuration is also fairly generic, but I have found this setup to be
useful:

        ./configure --prefix=/usr/local --nfw=/opt --ssl --ldap \
                --perl --pthreads --disable-xbox --enable-zerfsquat \
                --wave=hand

Linking in the libzerfsquat.so de* can give useful diagnostics when
you get that occasional zerf burn failure (looks like a flaky zerf-rw
drive to me). I had to make a couple of source changes in the zerf garbage
collection routines as well; before that, running zerf under
valbumpandgrind was finding a few leaks.

-s