[p4] p4 -x- flag with client -d?

David Weintraub qazwart at gmail.com
Thu Mar 29 10:51:24 PST 2007


The -x only works for file names and not client names. You have to
delete clients one at a time, but if you're on Unix, this will do the
trick in Bourne, Bash, or Kornshell:

while read client
do
    p4 client -d $client
done < obsolete_clients_list.txt

If you're in DOS, it's a bit trickier. I think this is it, but you
need to verify it:

    for /F %c in (obsolete_clients_list.txt) do p4 client -d %c

On 3/29/07, Barbieri, Ross <rbarbieri at atg.com> wrote:
> I am trying to delete a batch of obsolete clients, but I can't use the
> -x flag as I would expect:
>
>
>
> p4 -x obsolete_clients_list.txt client -d
>
>
>
> cat obsolete_clients_list.txt | p4 -x- client -d
>
>
>
> both give a usage error for the client command.
>
>
>
> Any thoughts?
>
>
>
> Thanks,
>
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>


-- 
--
David Weintraub
qazwart at gmail.com


More information about the perforce-user mailing list