Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: From: "Morrison, John" To: "'cygwin AT cygwin DOT com'" Subject: RE: Timing problem Date: Fri, 6 Jul 2001 09:37:16 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Nope: $ (time ls) | egrep '^real' real 0m0.422s user 0m0.062s sys 0m0.077s What made you think of the brackets? I think that the ls is being piped into grep. > -----Original Message----- > From: Robert Collins [mailto:robert DOT collins AT itdomain DOT com DOT au] > Sent: Friday, 06 July 2001 09:23 > To: Morrison, John; cygwin AT cygwin DOT com > Subject: RE: Timing problem > > > > -----Original Message----- > > From: Morrison, John [mailto:John DOT Morrison AT uk DOT experian DOT com] > > Sent: Friday, July 06, 2001 6:29 PM > > To: 'cygwin AT cygwin DOT com' > > Subject: RE: Timing problem > > > > > > Nope, time is 'built-in' to the bash shell. Try typing > > > > bash -c help > > > > to get a list of built-in functions and > > > > help time > > > > to get something a little more specific. > > Doh! > > try this: > (time somecommand) | egrep -e '^real' > > Rob > > > Thanks for replying though... > > > > > -----Original Message----- > > > From: Robert Collins [mailto:robert DOT collins AT itdomain DOT com DOT au] > > > Sent: Friday, 06 July 2001 09:17 > > > To: Morrison, John; cygwin AT cygwin DOT com > > > Subject: RE: Timing problem > > > > > > > > > > -----Original Message----- > > > > From: Morrison, John [mailto:John DOT Morrison AT uk DOT experian DOT com] > > > > Sent: Friday, July 06, 2001 6:17 PM > > > > To: 'cygwin AT cygwin DOT com' > > > > Subject: Timing problem > > > > > > > > > > > > Hi, > > > > > > > > First I'm going to apologies - I'm a user of cygwin, not a > > > > hacker and I also > > > > come from a windoze not a *nix background. I'm having a problem > > > > manipulating the output from time, I'd like to get just the > > > > 'real' time and > > > > thought I could do something like: > > > > > > > > $ time somecommand | egrep -e '^real' > > > > > > I have a full cygwin install... > > > == > > > $ type -p time > > > > > > == > > > time isn't a cygwin command. "date" is, and will give you > > the current > > > time, with a load of options for GMT etc. > > > > > > > but all combinations of std:out redirections fail to > send the time > > > > information into the grep instruction, they always get > > > > written to console. > > > > > > Thank MS for this - I believe you are running an MS time program. > > > > > > Rob > > > > > > > Please, is there anyway to do this? > > > > > > > > Thanks, > > > > > > > > J. > > > > > > > > > > > > > > ============================================================== > > ========= > > Information in this email and any attachments are > > confidential, and may > > not be copied or used by anyone other than the addressee, nor > > disclosed > > to any third party without our permission. There is no intention to > > create any legally binding contract or other commitment > > through the use > > of this email. > > > > Experian Limited (registration number 653331). > > Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF > > > > -- > > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > > Bug reporting: http://cygwin.com/bugs.html > > Documentation: http://cygwin.com/docs.html > > FAQ: http://cygwin.com/faq/ > > > > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/