[cciug] NT For /F (was: Re: Delete view private files)

From: Jim Pinkham (pinkham@netjets.com)
Date: Fri Sep 29 2000 - 09:22:55 EDT


One 'gotcha' with for /F is that by default you get only the first word.
If you have filenames with spaces, you need instead:

for /F "tokens=*" %i in ('cleartool lsprivate -s') do del %i

for /? for more info. (Also note, if you do a batch file, double the % as
in %%i )

-- Jim Pinkham
Executive Jet Aviation

----- Original Message -----
From: "Matt Walsh" <mwalsh@waverider.com>
To: <jamala@inprimis.com>; <cciug@rational.com>
Sent: Thursday, September 28, 2000 5:23 PM
Subject: RE: [cciug] Delete view private files

>
> Use cleartool lsprivate to generate a list of private files and remove
them using a for loop.
>
> In an NT command prompt, for example:
> for /F %i in ('cleartool lsprivate -short') do @del %i
>
> On Thursday, September 28, 2000 4:19 PM, jamala@inprimis.com
[SMTP:jamala@inprimis.com wrote:
> >
> > Hi all,
> > I would like to delete all my view private files from my view. The
options I
> > am aware of are:
> > 1. Delete the view.
> > 2. Use windows explorer and find all the files and directories and
delete
> > them manually.
> >
> > Is there a better way to delete these view private files?
> > Thanks for your help.
> > Jamal Aziz
> > Inprimis Technologies
> > <mailto:jamala@inprimis.com>
> >

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:26:56 EDT