Subject: | |
From: | |
Reply To: | |
Date: | Wed, 28 Jul 2004 09:47:29 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
-- 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 *
|
|
|