Thats funny, i used xargs last night to mass unrar stuff, and the results I saw showed that xargs took something1.rar then something2.rar, etc in order that ls gave it.  So it would be my conclusion that it does.<br><br>
<div class="gmail_quote">On Fri, Apr 17, 2009 at 1:53 PM, Jeff Lightner <span dir="ltr">&lt;<a href="mailto:jlightner@water.com">jlightner@water.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div lang="EN-US" vlink="purple" link="blue">
<div>
<div>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I’ve always assumed xargs processed each item as it arrived but saw something today that made me think perhaps this isn’t the case.</span></font></p>

<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">In essence I’m doing an “ls –tr log.* |xargs grep –hA 30 sometext”</span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Files are log, log.1, log.2 … log.10 where log is the newest and log.10 is the oldest.   </span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">My subsequent processing relies on the information from log.10 appearing first then log.9 then log.8 … log.</span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">What I saw today made it look as if it somehow grabbed log.10 at the end instead of the beginning.   </span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Apparently they were doing some tweaking of logs today so it’s possible what I saw was a result of them moving something.   </span></font></p>

<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I’d just like confirmation that xargs does in fact process things (and display it) in the order of what is piped into it rather than buffering it all and deciding on its own order.   </span></font></p>

<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Nothing in the man page seems to directly answer question about order.</span></font></p></div></div>
<div> </div>
<div><font face="Arial" color="green" size="1"><em>Please consider our environment before printing this e-mail or attachments.</em></font> </div>
<div style="FONT-SIZE: 9pt; FONT-FAMILY: Courier New"><font face="Arial" size="2">----------------------------------<br>CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.<br>
----------------------------------<br></font></div></div><br>_______________________________________________<br>Ale mailing list<br><a href="mailto:Ale@ale.org">Ale@ale.org</a><br><a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
<br></blockquote></div><br>