HP3000-L Archives

July 2003, 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:
Eben Yong <[log in to unmask]>
Reply To:
Eben Yong <[log in to unmask]>
Date:
Thu, 24 Jul 2003 10:48:01 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (1 lines)
You can do this easily in MPEX:



COPY YO@(BETWEEN(FILE,"YO012311","YO012320")), =.Y.Z



-----Original Message-----

From: Mark Bixby [mailto:[log in to unmask]] 

Posted At: Thursday, July 24, 2003 9:24 AM

Posted To: HP3000 Listserv

Conversation: Re: MPEX COPY

Subject: Re: MPEX COPY



The POSIX shell solution might look something like this (note -- this is

one

unwrapped statement):



cp $(find /ACCT/GRP -type f | sort | awk '/YO012311$/,/YO012320$/ {

print }')

/NEWACCT/NEWGRP



IIRC, you don't need the sort on MPE.  But the find results on some

Unixes

don't return files in sorted order, so my example uses sort in order to

be

multi-platform.



This example assumes the list of files to be copied is non-huge.  A huge

list

would overflow shell command buffers at some point.  There are

alternative

approaches that would avoid this problem.



- Mark B.



Shahan, Ray wrote:

> Well, actually, what I need is  YO012311 thru YO012320 out of a set of

files

> that start with the range YO011815 and end with the value YO012712,

and are

> numbered serially, so the Y@ just won't do it (but my previous poor

example

> is probably what led to your reply...thanks for the help, though).

:-)

>

> Ray Shahan

>

> "There is so much good in the worst of us,

> and so much bad in the best of us,

> that it behooves none of us

> to talk about the rest of us"

>                   --Robert Louis Stevenson?

>

>

>>-----Original Message-----

>>From: Larry Barnes [SMTP:[log in to unmask]]

>>Sent: Thursday, July 24, 2003 10:41 AM

>>To:   'Shahan, Ray'; [log in to unmask]

>>Subject:      RE: [HP3000-L] MPEX COPY

>>

>>one way would be to be logged into the account where the files will be

>>copied into.

>>Then using MPEX say:

>>  copy [log in to unmask]@[log in to unmask]@.GRP.ACCT,=.=

>>

>>USING THE "=.=" will put the files into the group with the same name.

>>

>>You can't mix the wildcard variables between accounts, like in the

example

>>you listed.  You were probably getting an error because you used

>>"@.grp.acct" as the copy 2 statement.

>>

>>-----Original Message-----

>>From: Shahan, Ray [mailto:[log in to unmask]]

>>Sent: Thursday, July 24, 2003 8:33 AM

>>To: [log in to unmask]

>>Subject: [HP3000-L] MPEX COPY

>>

>>

>>Hi all,

>>

>>        I'm trying to copy a subset of files from one acct to another,

and

>>I

>>ain't having much luck in MPEX.  Assume a file set labeled a thru z,

and I

>>want the files from that set that are labeled j thru m. (COPY

j.GRP.ACCT

>>thru m.GRP.ACCT, @.GRP.MYACCT)...any ideas?

>>

>>FWIW, I can (and probably will) do a quickie QEDIT for this in a

matter of

>>seconds, but I was just sure that somewhere back in the many cobwebs

of my

>>mind (what's left of it, anyway), I recall that this could be done in

>>MPEX?

>>:-)

>>

>>As always, TIA to all.

>>

>>Ray Shahan

>>

>>"There is so much good in the worst of us,

>>and so much bad in the best of us,

>>that it behooves none of us

>>to talk about the rest of us"

>>                  --Robert Louis Stevenson?

>>

>>

>>######################################################################

####

>>##

>>#########

>>This e-mail message has been scanned for Viruses and Content and

cleared

>>by MailMarshal

>>######################################################################

####

>>##

>>#########

>>

>>* To join/leave the list, search archives, change list settings, *

>>* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

>

>

>

########################################################################

#############

> This e-mail message has been scanned for Viruses and Content and

cleared

> by MailMarshal

>

########################################################################

#############

>

> * To join/leave the list, search archives, change list settings, *

> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

>

>





--

[log in to unmask]

Remainder of .sig suppressed to conserve expensive California

electrons...



* To join/leave the list, search archives, change list settings, *

* etc., please visit http://raven.utc.edu/archives/hp3000-l.html * 

  

CONFIDENTIALITY NOTICE:  This e-mail, including attachments, is for the 

sole use of the individual(s) to whom it is addressed, and may contain 

confidential and privileged information. Any unauthorized review, use, 

disclosure, distribution, or reproduction is prohibited. If you have 

received this e-mail in error, please notify the sender by reply e-mail 

and destroy this message and its attachments. Thank you for your 

cooperation.  

 


ATOM RSS1 RSS2