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:
Paul Christidis <[log in to unmask]>
Reply To:
Date:
Wed, 28 Jul 2004 17:06:20 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (84 lines)
Robert,

I think someone already suggested to merely 'drop' the '.rdy' extension.
To which you replied that it does not work.

Below are the results of executing the suggested command on my machine
(MPE/iX 6.0 pp2):

:listfile /SYS/SUPUTIL/@/@;seleq=[object=file];format=6
 /SYS/SUPUTIL/test_dir1/file1
 /SYS/SUPUTIL/test_dir1/file1.bin
 /SYS/SUPUTIL/test_dir2/file1
 /SYS/SUPUTIL/test_dir2/file1.txt
 /SYS/SUPUTIL/vista.25d/SOLARIS.PS.tar.Z
 /SYS/SUPUTIL/vista.25d/cleanup.Z
 /SYS/SUPUTIL/vista.25d/install
 /SYS/SUPUTIL/vista.25d/install_remote
 /SYS/SUPUTIL/vista.25d/tfms.tar.Z
 /SYS/SUPUTIL/vista.25d/vista-solaris.tar.Z

Note that files with AND without extensions are listed.

Regards
Paul Christidis


HP-3000 Systems Discussion <[log in to unmask]> wrote on 07/28/2004
09:47:29 AM:

> -- 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 *

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

ATOM RSS1 RSS2