Subject: Fwd: Renaming copied files en masse....
To: None <port-arm32@NetBSD.ORG>
From: Paul Wain <pwain@nc.com>
List: port-arm32
Date: 12/10/1997 02:02:21
--=_NCMail_rdlp7D
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
[]
--
This mail was sent from a 233MHz StrongArm Network Computer.
--=_NCMail_rdlp7D
Content-Type: multipart/mixed; boundary="=_NCMail_rdlp7E"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment
--=_NCMail_rdlp7E
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
<HTML>
<HEAD>
<TITLE>Forward</TITLE>
<BASE HREF=3D"file:">
</HEAD>
<BODY>
<P><BR>
<BR>
</P>
</BODY>
</HTML>
<HTML>
<HEAD>
<TITLE>signature</TITLE>
</HEAD>
<BODY BGCOLOR=3D#f5ffcf TEXT=3DNAVY>
<P><P><FONT COLOR=3DBLACK>--<BR>
</FONT><FONT COLOR=3DRED>T</FONT><FONT COLOR=3DGREEN>h</FONT><FONT COL=
OR=3DBLUE>i</FONT><FONT COLOR=3DPURPLE>s </FONT><FONT COLOR=3DRED>m</F=
ONT><FONT COLOR=3DGREEN>a</FONT><FONT COLOR=3DBLUE>i</FONT><FONT COLOR=
=3DPURPLE>l </FONT><FONT COLOR=3DRED>w</FONT><FONT COLOR=3DGREEN>a</FO=
NT><FONT COLOR=3DBLUE>s </FONT><FONT COLOR=3DPURPLE>s</FONT><FONT COLO=
R=3DRED>e</FONT><FONT COLOR=3DGREEN>n</FONT><FONT COLOR=3DBLUE>t </FON=
T><FONT COLOR=3DPURPLE>f</FONT><FONT COLOR=3DRED>r</FONT><FONT COLOR=3D=
GREEN>o</FONT><FONT COLOR=3DBLUE>m </FONT><FONT COLOR=3DPURPLE>a </FON=
T><FONT COLOR=3DRED>2</FONT><FONT COLOR=3DGREEN>3</FONT><FONT COLOR=3D=
BLUE>3</FONT><FONT COLOR=3DPURPLE>M</FONT><FONT COLOR=3DRED>Hz</FONT><=
=46ONT COLOR=3DPURPLE> S</FONT><FONT COLOR=3DBLUE>t</FONT><FONT CO=
LOR=3DGREEN>r</FONT><FONT COLOR=3DRED>o</FONT><FONT COLOR=3DPURPLE>n</=
=46ONT><FONT COLOR=3DBLUE>g</FONT><FONT COLOR=3DGREEN>A</FONT><FONT CO=
LOR=3DRED>r</FONT><FONT COLOR=3DPURPLE>m</FONT><FONT COLOR=3DBLUE> =
;N</FONT><FONT COLOR=3DGREEN>e</FONT><FONT COLOR=3DRED>t</FONT><FONT C=
OLOR=3DPURPLE>w</FONT><FONT COLOR=3DBLUE>o</FONT><FONT COLOR=3DGREEN>r=
</FONT><FONT COLOR=3DRED>k</FONT><FONT COLOR=3DPURPLE> C</FONT><FO=
NT COLOR=3DBLUE>o</FONT><FONT COLOR=3DGREEN>m</FONT><FONT COLOR=3DRED>=
p</FONT><FONT COLOR=3DPURPLE>u</FONT><FONT COLOR=3DBLUE>t</FONT><FONT =
COLOR=3DGREEN>e</FONT><FONT COLOR=3DRED>r.</FONT></P></P>
</BODY>
</HTML>
--=_NCMail_rdlp7E
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Envelope-NCMailBegin: pwain:deimos.nc.com:POP3
Envelope-From: pwain@nc.com
Envelope-To: port-arm32-owner-PWAIN=nc.com@NetBSD.ORG
From: Paul Wain <pwain@nc.com>
Subject: Re: Renaming copied files en masse....
Organization: Network Computer Inc.
Content-Type: multipart/alternative; boundary="=_NCMail_Edlp7C"
Content-Transfer-Encoding: 7bit
To: <port-arm32-owner-PWAIN=nc.com@NetBSD.ORG>
Message-Id: <Ggfj0Bncm@desktop-nc187.client.nc.com>
MIME-Version: 1.0
Date: Wed, 10 Dec 1997 02:01:42 GMT
--=_NCMail_Edlp7C
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
> After re-reading my intial posting and talking to Theo I can see how
> what I wrote before was a little ambiguous. My problem is that on the CD
> (Datafile PDCD4), the files are BASE_SET_GZ etc as opposed to
> BASE.SET.GZ which is what BSD wants, (and obviously RiscOS can't have a
> file BASE.SET.GZ). Naturally, when these files are copied by RiscOS
> using unixfs then they are copied as BASE_SET_GZ, or whatever. It is
> using the '_' character along with the '*' wildcard that mv does not
> like. I can mv 'BASE_SET_GZ' to 'base.set.gz' no problem. It's when
> it comes to 'mv *_SET_GZ *.set.gz' or even 'mv *_GZ *.gz' that it
> doesn't like it. And seeing as BASE is 13 different files let alone X or
> anything else, this is a mighty tedious activity to rename them all one
> by one.
>From "Using Unix By Example" by Poole and Poole:
To e.g. rename a set of files *_SET_GZ to *.set.gz try something like the
(t)csh style:
foreach f ( *_SET_GZ )
mv $f `basename $f _SET_GZ`.set.gz
end
Shell equivilants do exist. (Note you can type the above at a command line, the
(t)csh command line parser will keep prompting you for new input until you type
the final end at which point it will run the impromptue script).
P.
--
This mail was sent from a 233MHz StrongArm Network Computer.
--=_NCMail_Edlp7C
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
<HTML>
<HEAD>
<TITLE>Reply</TITLE>
<BASE HREF=3D"file:">
</HEAD>
<BODY>
<P><PRE>> After re-reading my intial posting and talking to Theo I =
can see how
> what I wrote before was a little ambiguous. My problem is that on=
the CD
> (Datafile PDCD4), the files are BASE_SET_GZ etc as opposed to
> BASE.SET.GZ which is what BSD wants, (and obviously RiscOS can't =
have a
> file BASE.SET.GZ). Naturally, when these files are copied by Risc=
OS
> using unixfs then they are copied as BASE_SET_GZ, or whatever. It=
is
> using the '_' character along with the '*' wildcard that mv does =
not
> like. I can mv 'BASE_SET_GZ' to 'base.set.gz' no problem. It's =
when
> it comes to 'mv *_SET_GZ *.set.gz' or even 'mv *_GZ *.gz' that it
> doesn't like it. And seeing as BASE is 13 different files let alo=
ne X or
> anything else, this is a mighty tedious activity to rename them a=
ll one
> by one. </PRE>
=46rom "Using Unix By Example" by Poole and Poole:<BR>
<BR>
To e.g. rename a set of files *_SET_GZ to *.set.gz try something like =
the (t)csh style:<BR>
<BR>
	foreach f ( *_SET_GZ )<BR>
		mv $f `basename $f _SET_GZ`.set.gz<BR>
	end<BR>
<BR>
Shell equivilants do exist. (Note you can type the above at a command =
line, the (t)csh command line parser will keep prompting you for new i=
nput until you type the final end at which point it will run the impro=
mptue script).<BR>
<BR>
P.</P>
</BODY>
</HTML>
<HTML>
<HEAD>
<TITLE>signature</TITLE>
</HEAD>
<BODY BGCOLOR=3D#f5ffcf TEXT=3DNAVY>
<P><P><FONT COLOR=3DBLACK>--<BR>
</FONT><FONT COLOR=3DRED>T</FONT><FONT COLOR=3DGREEN>h</FONT><FONT COL=
OR=3DBLUE>i</FONT><FONT COLOR=3DPURPLE>s </FONT><FONT COLOR=3DRED>m</F=
ONT><FONT COLOR=3DGREEN>a</FONT><FONT COLOR=3DBLUE>i</FONT><FONT COLOR=
=3DPURPLE>l </FONT><FONT COLOR=3DRED>w</FONT><FONT COLOR=3DGREEN>a</FO=
NT><FONT COLOR=3DBLUE>s </FONT><FONT COLOR=3DPURPLE>s</FONT><FONT COLO=
R=3DRED>e</FONT><FONT COLOR=3DGREEN>n</FONT><FONT COLOR=3DBLUE>t </FON=
T><FONT COLOR=3DPURPLE>f</FONT><FONT COLOR=3DRED>r</FONT><FONT COLOR=3D=
GREEN>o</FONT><FONT COLOR=3DBLUE>m </FONT><FONT COLOR=3DPURPLE>a </FON=
T><FONT COLOR=3DRED>2</FONT><FONT COLOR=3DGREEN>3</FONT><FONT COLOR=3D=
BLUE>3</FONT><FONT COLOR=3DPURPLE>M</FONT><FONT COLOR=3DRED>Hz</FONT><=
=46ONT COLOR=3DPURPLE> S</FONT><FONT COLOR=3DBLUE>t</FONT><FONT CO=
LOR=3DGREEN>r</FONT><FONT COLOR=3DRED>o</FONT><FONT COLOR=3DPURPLE>n</=
=46ONT><FONT COLOR=3DBLUE>g</FONT><FONT COLOR=3DGREEN>A</FONT><FONT CO=
LOR=3DRED>r</FONT><FONT COLOR=3DPURPLE>m</FONT><FONT COLOR=3DBLUE> =
;N</FONT><FONT COLOR=3DGREEN>e</FONT><FONT COLOR=3DRED>t</FONT><FONT C=
OLOR=3DPURPLE>w</FONT><FONT COLOR=3DBLUE>o</FONT><FONT COLOR=3DGREEN>r=
</FONT><FONT COLOR=3DRED>k</FONT><FONT COLOR=3DPURPLE> C</FONT><FO=
NT COLOR=3DBLUE>o</FONT><FONT COLOR=3DGREEN>m</FONT><FONT COLOR=3DRED>=
p</FONT><FONT COLOR=3DPURPLE>u</FONT><FONT COLOR=3DBLUE>t</FONT><FONT =
COLOR=3DGREEN>e</FONT><FONT COLOR=3DRED>r.</FONT></P></P>
</BODY>
</HTML>
--=_NCMail_Edlp7C--
--=_NCMail_rdlp7E--
--=_NCMail_rdlp7D--