[mdlug] Difference between ; and &&
Mat Enders
mat.enders at gmail.com
Wed May 9 12:03:03 EDT 2012
Gib thanks for that link.
Mat Enders from my BlackBerry®
-----Original Message-----
From: "gib at juno.com" <gib at juno.com>
Sender: mdlug-bounces at mdlug.org
Date: Wed, 9 May 2012 14:20:41
To: <mdlug at mdlug.org>
Reply-To: MDLUG's Main discussion list <mdlug at mdlug.org>
Cc: <mdlug at mdlug.org>
Subject: Re: [mdlug] Difference between ; and &&
I see a couple of responses to your question already. But I want to add a bit. The construct "&&" is also used in other languages besides the shell.
Here is a link to some related information:
http://ss64.com/bash/syntax-execute.html
---------- Original Message ----------
From: Mat Enders <mat.enders at gmail.com>
To: "MDLUG's Main discussion list" <mdlug at mdlug.org>
Subject: [mdlug] Difference between ; and &&
Date: Wed, 9 May 2012 08:12:13 -0400
Hello all,
When stringing commands together at the command line I always use the
semicolon ; I however see && used frequently and was wondering what
the difference was.
For example what is the difference between these commands:
apt-get update;apt-get dist-upgrade
and
apt-get update && apt-get dist-upgrade
--
Mathew E. Enders
"Where once Samba and Apache sold Linux to the world they are now just
part of the plumbing. But that's OK, plumbers make good money."
--Jeremy Allison
_______________________________________________
mdlug mailing list
mdlug at mdlug.org
http://mdlug.org/mailman/listinfo/mdlug
____________________________________________________________
53 Year Old Mom Looks 33
The Stunning Results of Her Wrinkle Trick Has Botox Doctors Worried
http://thirdpartyoffers.juno.com/TGL3131/4faa7d70d9dd5fc881bst03vuc
_______________________________________________
mdlug mailing list
mdlug at mdlug.org
http://mdlug.org/mailman/listinfo/mdlug
More information about the mdlug
mailing list