HP3000-L Archives

July 2004, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
donna garverick <[log in to unmask]>
Reply To:
Date:
Wed, 28 Jul 2004 09:47:29 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (52 lines)
-- Robert Mills <[log in to unmask]> wrote:
>
> I have an MPE group that contains several HFS directories. Some of
> the files in the HFS directories have a file extension (.rdy in this
> instance) and some do not.
>
> Using the command ':listfile
> /PIN2000/STRMSERV/@[log in to unmask];seleq=[object=file];format=6' I can see the
> files with the .rdy extension. How do I list the files WITHOUT a file
> extension?

this will answer your basic question...

    ls -l | awk '$9 !~ /[.]/ {print $9}'

$9 is variable containing the file names
!~ is not matching
[.] is match any . in the string

now...note that ls is running for the directory you're in...that should
be expanded to be more versatile.  i tried wrapping this in an

   xeq sh.hpbin "-c '...'"

command...but ran into quoting problems.  maybe someone else can figure
that out.

hth         - d

=====
Donna Garverick     Sr. System Programmer
dgarverick -at- longs -dot- com
925-210-6631        Longs Drug Stores

Come, my friends, 'Tis not too late to seek a newer world.
Tho' much is taken, much abides; and tho'
We are not now that strength which in old days
Moved earth and heaven, that which we are, we are.
"Ulysses", A. Tennyson

>>>MY opinions, not Longs Drug Stores'<<<



__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2