A response from a St. Louis colleague:<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Robert Citek</b> <<a href="mailto:robert.citek@gmail.com">robert.citek@gmail.com
</a>><br>Date: Dec 17, 2006 7:42 PM<br>Subject: Re: Fwd: Fwd: [DISCUSS] 10 Good Unix command line habits<br>To: <a href="mailto:discuss@sluug.org">discuss@sluug.org</a><br><br></span><br><br>Also, in "Use escape sequences to manage long input", there's no need to
<br>put a backslash after a pipe (|), logical or (||), or logical and (&&).<br> So, this:<br><br>~ $ cd tmp/a/b/c || \<br>> mkdir -p tmp/a/b/c && \<br>> tar xvf -C tmp/a/b/c ~/archive.tar<br><br>can be re-written as this:
<br><br>~ $ cd tmp/a/b/c ||<br>> mkdir -p tmp/a/b/c &&<br>> tar xvf -C tmp/a/b/c ~/archive.tar<br><br>Happy Holidays to all.<br><br>Regards,<br>- Robert<br><br>Don Ellis wrote:<br>> Ed and Group,<br>><br>
> Here's a note from one of our KC colleagues (to whom I forwarded this)<br>> pointing out an error on the page (which I noticed but didn't share).<br>><br>> --Don Ellis<br>><br>><br>> ---------- Forwarded message ----------
<br>> From: *Luke-Jr* <<a href="mailto:luke@dashjr.org">luke@dashjr.org</a> <mailto:<a href="mailto:luke@dashjr.org">luke@dashjr.org</a>>><br>> Date: Dec 17, 2006 12:54 AM<br>> Subject: Re: Fwd: [DISCUSS] 10 Good Unix command line habits
<br>> To: <a href="mailto:kclug@kclug.org">kclug@kclug.org</a> <mailto:<a href="mailto:kclug@kclug.org">kclug@kclug.org</a>><br>><br>> Notes:<br>> In "Quote variables with caution", it says to use square brackets, and then
<br>> goes on to give a correct example with curly braces.<br>> "Stop piping cats" only refers to piping to grep, but in reality there's<br>> almost never a good reason to pipe a single-file cat. The < operator
<br>> provides<br>> a file on standard input. So "cat foo | wc -l" can become "wc -l < foo"<br><br>-------<br>St. Louis Unix Users Group - <a href="http://www.sluug.org/">http://www.sluug.org/
</a><br>To unsubscribe from the SLUUG discussion mailing list, send a message to<br><a href="mailto:discuss-request@sluug.org">discuss-request@sluug.org</a> with the word 'unsubscribe' as the body<br>