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

Geir A. Myrestrand geir.myrestrand at falconstor.com
Fri Mar 30 06:31:49 PST 2007


David Weintraub wrote:
> On 3/29/07, Ken Williams <ken.williams at thomson.com> wrote:
>>  cat obsolete_clients_list.txt | xargs p4 client -d
> 
> "xargs" will not work as you shown because "xargs" loads up as many
> parameters as it can on the command line, before running the command.

Not true, it will work.

However, there are assumptions regarding the format of the 
obsolete_clients_list.txt. It works fine if for example the client names 
are on separate lines. I'm also assuming a recent Linux edition of 
xargs, as there may be other xargs versions or implementations that 
behave differently.

-- 

Geir A. Myrestrand


More information about the perforce-user mailing list